gcc/testsuite/gcc.target/mips/mips16-attributes-4.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-options "(-mips16)" } */ |
| 3 | |
| 4 | extern void abort (void); |
| 5 | |
| 6 | __complex float f = { -1.0 + -1.0i }; |
| 7 | __complex float __attribute__((nomips16)) foo (void) { return f; } |
| 8 | __complex float (*volatile foop) (void) = foo; |
| 9 | __complex float __attribute__((mips16, noinline)) bar (void) { return foop (); } |
| 10 | |
| 11 | int |
| 12 | main (void) |
| 13 | { |
| 14 | if (bar () != f) |
| 15 | abort (); |
| 16 | return 0; |
| 17 | } |