LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-prof / pr49299-1.c
blobdd45bafc784299414a072ec032ea37f5ab28e993
1 /* { dg-options "-O2" } */
3 __attribute__((noreturn)) void (*fn) (void);
5 volatile int v;
7 __attribute__((noreturn)) void
8 fn0 (void)
10 __builtin_exit (0);
13 __attribute__((noreturn)) void
14 fn1 (void)
16 __builtin_exit (1);
19 __attribute__((noinline, noclone)) void
20 setfn (__attribute__((noreturn)) void (*x) (void))
22 fn = x;
25 int
26 main ()
28 int i;
29 if (v < 1)
30 setfn (fn0);
31 else
32 setfn (fn1);
33 fn ();