4 // { dg-options "-O3 -Wall -fdump-tree-optimized -Wno-return-type" }
6 enum eShape
{ eSquare
, eCircle
, eShpere
, eTetraeder
};
8 double test_switch_native(enum eShape shape
, double r
) {
10 case eSquare
: return 2;
11 case eCircle
: return 3;
12 case eShpere
: return 4;
13 case eTetraeder
: return 5;
17 // { dg-final { scan-tree-dump-times "if " 1 optimized } }