Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/20030814-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-dom2" } */
3
4 extern void abort (void);
5 extern void oof (int);
6
7 int
8 com(int *blah)
9 {
10 int z = *blah;
11 if (z == 256)
12 {
13 oof (z);
14 abort ();
15 }
16 return *blah;
17 }
18
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"} } */
22