2011-06-06 Jakub Jelinek PR gcov-profile/49299 * gcc.dg/tree-prof/pr49299.c: New test. --- gcc/testsuite/gcc.dg/tree-prof/pr49299.c.jj 2011-06-06 11:34:58.000000000 +0200 +++ gcc/testsuite/gcc.dg/tree-prof/pr49299.c 2011-06-06 11:34:51.000000000 +0200 @@ -0,0 +1,34 @@ +/* { dg-options "-O2" } */ + +__attribute__((noreturn)) void (*fn) (void); + +volatile int v; + +__attribute__((noreturn)) void +fn0 (void) +{ + __builtin_exit (0); +} + +__attribute__((noreturn)) void +fn1 (void) +{ + __builtin_exit (1); +} + +__attribute__((noinline, noclone)) void +setfn (__attribute__((noreturn)) void (*x) (void)) +{ + fn = x; +} + +int +main () +{ + int i; + if (v < 1) + setfn (fn0); + else + setfn (fn1); + fn (); +}