Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / testsuite / gcc.target / mips / mips16-attributes-4.c
blobde7cb4349b7d0d04c28875bc302fab14f4d5e7db
1 /* { dg-do run } */
2 /* { dg-options "(-mips16)" } */
4 extern void abort (void);
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 (); }
11 int
12 main (void)
14 if (bar () != f)
15 abort ();
16 return 0;