1/* PR target/60062 */ 2 3int a; 4 5static void 6foo (const char *p1, int p2) 7{ 8 if (__builtin_strcmp (p1, "hello") != 0) 9 __builtin_abort (); 10} 11 12static void 13bar (const char *p1) 14{ 15 if (__builtin_strcmp (p1, "hello") != 0) 16 __builtin_abort (); 17} 18 19__attribute__((optimize (0))) int 20main () 21{ 22 foo ("hello", a); 23 bar ("hello"); 24 return 0; 25} 26