modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/20010119-1.c (about) 1 #ifdef __OPTIMIZE__ 2 extern void undef (void); 3 4 void bar (unsigned x) { } 5 void baz (unsigned x) { } 6 7 extern inline void foo (int a, int b) 8 { 9 int c = 0; 10 while (c++ < b) 11 (__builtin_constant_p (a) ? ((a) > 20000 ? undef () : bar (a)) : baz (a)); 12 } 13 #else 14 void foo (int a, int b) 15 { 16 } 17 #endif 18 19 int main (void) 20 { 21 foo(10, 100); 22 exit (0); 23 }