Debian Codegraph @

gcc/testsuite/gcc.dg/builtin-apply5.c

raw
1 /* { dg-options "-O2 -Wmissing-noreturn -fgnu89-inline" } */
2 /* { dg-additional-options "-mno-mmx" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
3 /* { dg-do compile } */
4
5 extern void abort (void);
6
7 double
8 foo (int arg)
9 {
10 if (arg != 116)
11 abort();
12 return arg + 1;
13 }
14
15 __attribute__((noreturn))
16 double
17 bar (int arg)
18 {
19 foo (arg);
20 __builtin_return (__builtin_apply ((void (*) ()) foo, /* { dg-warning "'noreturn' function does return" } */
21 __builtin_apply_args (), 16));
22 }
23