]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/copy-headers.c
Merge tree-ssa-20020619-branch into mainline.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / copy-headers.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ch-details" } */
3
4 extern int foo (int);
5
6 void bla (void)
7 {
8 int i, n = foo (0);
9
10 for (i = 0; i < n; i++)
11 foo (i);
12 }
13
14 /* There should be a header scheduled for duplication. */
15 /* { dg-final { scan-tree-dump-times "Scheduled" 1 "ch"} } */