Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/20040917-1.c

raw
1 /* submitted by kenneth zadeck */
2
3 void abort (void);
4
5 static int test_var;
6
7 /* the idea here is that not only is inlinable, inlinable but since it
8 is static, the cgraph node will not be marked as output. The
9 current version of the code ignores these cgraph nodes. */
10
11 void not_inlinable() __attribute__((noinline));
12
13 static void
14 inlinable ()
15 {
16 test_var = -10;
17 }
18
19 void
20 not_inlinable ()
21 {
22 inlinable();
23 }
24
25 int
26 main (void)
27 {
28 test_var = 10;
29 /* Variable test_var should be considered call-clobbered by the call
30 to not_inlinable(). */
31 not_inlinable ();
32 if (test_var == 10)
33 abort ();
34 return 0;
35 }