summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/mips16-attributes-4.c
blob: de7cb4349b7d0d04c28875bc302fab14f4d5e7db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do run } */
/* { dg-options "(-mips16)" } */

extern void abort (void);

__complex float f = { -1.0 + -1.0i };
__complex float __attribute__((nomips16)) foo (void) { return f; }
__complex float (*volatile foop) (void) = foo;
__complex float __attribute__((mips16, noinline)) bar (void) { return foop (); }

int
main (void)
{
  if (bar () != f)
    abort ();
  return 0;
}