mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
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
This commit is contained in:
13
test/Transforms/CodeExtractor/loops-outputs.c
Normal file
13
test/Transforms/CodeExtractor/loops-outputs.c
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user