| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-std=gnu17 -O2" } */ |
| 3 |
|
| 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)(); |
| 11 |
int (*oneargfunc)(); |
| 12 |
switch (CCTK_CallFunction_fdata_1) { |
| 13 |
case FunctionOneArg: |
| 14 |
oneargfunc = CCTK_CallFunction_function; |
| 15 |
oneargfunc(CCTK_CallFunction_data); |
| 16 |
break; |
| 17 |
case FunctionStandard: |
| 18 |
switch (CCTK_CallFunction_fdata_0) { |
| 19 |
case LangC: |
| 20 |
standardfunc = CCTK_CallFunction_function; |
| 21 |
standardfunc(CCTK_CallFunction_data); |
| 22 |
} |
| 23 |
} |
| 24 |
} |