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