summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/branch.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Generic/branch.c')
-rw-r--r--test/CodeGen/Generic/branch.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/branch.c b/test/CodeGen/Generic/branch.c
new file mode 100644
index 0000000000..d54a771da4
--- /dev/null
+++ b/test/CodeGen/Generic/branch.c
@@ -0,0 +1,15 @@
+#include <stdio.h>
+int a = 1, b = 2;
+
+int main() {
+ int i,j;
+ for (i=15; i>=0; --i) {
+ if (a < i) printf("%d < %d\n", a, i);
+ else printf("%d >= %d\n", a, i);
+ for (j=2; j <= 25; j++) {
+ printf("%d, ", j);
+ }
+ printf("\n");
+ }
+ return 0;
+}