PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / PR65282.c
bloba52bec655eb24ba6d2814a9f0abf3663ab8affa7
1 /* { dg-do compile } */
2 /* { dg-options "-Os -fdump-ipa-icf" } */
4 int a[2];
5 static int *b = &a[0], *c = &a[1];
7 int
8 main ()
10 *c = 1;
11 *b = 0;
13 if (a[1] != 1)
14 __builtin_abort ();
16 return 0;
19 /* { dg-final { scan-ipa-dump "Equal symbols: 0" "icf" } } */