Two testcases for loops: one with outputs, one without.

llvm-svn: 11934
This commit is contained in:
Misha Brukman 2004-02-28 03:20:41 +00:00
parent 84f00e93f7
commit 26992f4a8c
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#include <stdio.h>
int main(int argc, char *argv[]) {
int i;
for (i=0; i < 5; ++i)
printf("%d\n", i);
printf("separator!\n");
for (i=0; i < 4; ++i)
printf("[%d]\n", i+5);
return 0;
}

View File

@ -0,0 +1,13 @@
#include <stdio.h>
int main(int argc, char *argv[]) {
int i, d=0;
for (i=0; i < 10; ++i)
d += i;
printf("separator!\n");
for (i=0; i < 4; ++i)
printf("[%d]\n", d+i);
return 0;
}