| 1 |
/* Test TI ABI unsupported constructs */ |
| 2 |
|
| 3 |
/* { dg-do assemble } */ |
| 4 |
/* { dg-options "-O1 -mabi=ti" } */ |
| 5 |
|
| 6 |
|
| 7 |
extern void extfunc(void (*fp)(void)); |
| 8 |
|
| 9 |
void test(void) |
| 10 |
{ |
| 11 |
extfunc(test); /* { dg-error "function pointers not supported with '-mabi=ti' option" } */ |
| 12 |
} |