PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr51762.c
blob9c59f338c7e36a1b2ba9e342b1cadccd9f45616c
1 /* PR debug/51762 */
2 /* { dg-do compile } */
3 /* { dg-options "-g -Os -fomit-frame-pointer -fno-asynchronous-unwind-tables" } */
5 void noret (void) __attribute__ ((noreturn));
6 int bar (void);
7 void baz (const char *);
8 static int v = -1;
10 void
11 foo (void)
13 if (bar () && v == -1)
15 baz ("baz");
16 noret ();
18 noret ();