PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / pr81696.c
blob628dcde7e3fc232d6a355db331f1145e22463e63
1 /* { dg-options "-O2 -fdump-ipa-icf-details" } */
2 /* { dg-require-effective-target nonlocal_goto } */
4 int
5 main (int argc, char **argv)
7 __label__ lab4, lab5, lab6;
9 void foo (void) { goto lab4; }
10 void foo2 (void) { goto lab4; }
11 void bar (void) { goto lab5; }
12 void baz (void) { goto lab6; }
14 if (argc)
15 foo ();
16 else
17 foo2 ();
19 lab4:;
20 bar ();
21 lab5:;
22 baz ();
23 lab6:;
24 return 0;
27 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */