2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / builtin-apply4.c
blob530da7115810e14df08d42ea23c1c4d74a1de312
1 /* PR tree-optimization/20076 */
2 /* { dg-options "-O2 -Wmissing-noreturn" } */
3 /* { dg-options "-O2 -mno-mmx" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
4 /* { dg-do run } */
6 extern void abort (void);
8 double
9 foo (int arg)
11 if (arg != 116)
12 abort();
13 return arg + 1;
16 inline double
17 bar (int arg)
19 foo (arg);
20 __builtin_return (__builtin_apply ((void (*) ()) foo,
21 __builtin_apply_args (), 16));
24 int
25 main (int argc, char **argv)
27 if (bar (116) != 117.0)
28 abort ();
30 return 0;