llvm.org GIT mirror llvm / 870e587
Two testcases for loops: one with outputs, one without. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11934 91177308-0d34-0410-b5e6-96231b3b80d8 Misha Brukman 15 years ago
2 changed file(s) with 26 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 #include
1
2 int main(int argc, char *argv[]) {
3 int i;
4 for (i=0; i < 5; ++i)
5 printf("%d\n", i);
6
7 printf("separator!\n");
8
9 for (i=0; i < 4; ++i)
10 printf("[%d]\n", i+5);
11 return 0;
12 }
0 #include
1
2 int main(int argc, char *argv[]) {
3 int i, d=0;
4 for (i=0; i < 10; ++i)
5 d += i;
6
7 printf("separator!\n");
8
9 for (i=0; i < 4; ++i)
10 printf("[%d]\n", d+i);
11 return 0;
12 }