PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20040917-1.c
blob73bc6c6479c666e81a4d1d4c8bed6866bd7875d5
1 /* submitted by kenneth zadeck */
3 static int test_var;
5 /* the idea here is that not only is inlinable, inlinable but since it
6 is static, the cgraph node will not be marked as output. The
7 current version of the code ignores these cgraph nodes. */
9 void not_inlinable() __attribute__((noinline));
11 static void
12 inlinable ()
14 test_var = -10;
17 void
18 not_inlinable ()
20 inlinable();
23 main ()
25 test_var = 10;
26 /* Variable test_var should be considered call-clobbered by the call
27 to not_inlinable(). */
28 not_inlinable ();
29 if (test_var == 10)
30 abort ();
31 return 0;