1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 typedef enum { LangC
} cLanguage
;
5 typedef enum { FunctionOneArg
, FunctionStandard
} cFunctionType
;
6 void *CCTK_CallFunction_function
;
7 cLanguage CCTK_CallFunction_fdata_0
;
8 cFunctionType CCTK_CallFunction_fdata_1
;
9 void CCTK_CallFunction_data() {
10 void (*standardfunc
)();
12 switch (CCTK_CallFunction_fdata_1
) {
14 oneargfunc
= CCTK_CallFunction_function
;
15 oneargfunc(CCTK_CallFunction_data
);
17 case FunctionStandard
:
18 switch (CCTK_CallFunction_fdata_0
) {
20 standardfunc
= CCTK_CallFunction_function
;
21 standardfunc(CCTK_CallFunction_data
);