PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20030814-1.c
blob451dc3b904580c8e35fe7b64c6206357927ce9aa
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-dom2" } */
4 extern void abort (void);
5 extern void oof (int);
7 int
8 com(int *blah)
10 int z = *blah;
11 if (z == 256)
13 oof (z);
14 abort ();
16 return *blah;
19 /* There should be precisely one load of blah. If there is
20 more than one, then the dominator optimizations failed. */
21 /* { dg-final { scan-tree-dump-times "\\*blah" 1 "dom2"} } */