No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / tree-ssa / 20030703-1.c
blob1ba57daa6682dacd88e156d1fca6ec8e0b674604
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-dom3" } */
4 extern void abort (void);
5 extern int blah[];
7 foo(int index)
9 if (blah [(unsigned int)index] != 0)
10 abort ();
11 if (blah [(unsigned int)index] != 0)
12 abort ();
15 /* There should be precisely one load of blah. If there is
16 more than one, then the dominator optimizations failed. */
17 /* { dg-final { scan-tree-dump-times "blah" 1 "dom3"} } */
19 /* There should be exactly one IF conditional. */
20 /* { dg-final { scan-tree-dump-times "if " 1 "dom3"} } */
22 /* { dg-final { cleanup-tree-dump "dom3" } } */