OSDN Git Service

PR middle-end/20256
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / 20031022-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-dom1" } */
3  
4 typedef struct edge_def
5 {
6   int z;
7 } *edge;
8 typedef struct basic_block_def
9 {
10   edge pred;
11 } *basic_block;
12 extern struct basic_block_def entry_exit_blocks[2];
13 void
14 blah (int arf)
15 {
16   edge e;
17   e = (&entry_exit_blocks[1])->pred;
18   for ( ; ;)
19     if (arf)
20       break;
21   commit_edge_insertions ();
22   e = (&entry_exit_blocks[1])->pred;
23   foo (e);
24 }
25
26 /* There should be one load from entry_exit_blocks[1].pred.  */
27 /* { dg-final { scan-tree-dump-times "entry_exit_blocks.1..pred" 1 "dom1"} } */
28 /* { dg-final { cleanup-tree-dump "dom1" } } */