1/* submitted by kenneth zadeck */ 2 3static int test_var; 4 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. */ 8 9void not_inlinable() __attribute__((noinline)); 10 11static void 12inlinable () 13{ 14 test_var = -10; 15} 16 17void 18not_inlinable () 19{ 20 inlinable(); 21} 22 23main () 24{ 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; 32} 33