]> gcc.gnu.org Git - gcc.git/commitdiff
*** empty log message ***
authorChandra Chavva <cchavva@gcc.gnu.org>
Wed, 1 Mar 2000 22:42:36 +0000 (17:42 -0500)
committerChandra Chavva <cchavva@gcc.gnu.org>
Wed, 1 Mar 2000 22:42:36 +0000 (17:42 -0500)
From-SVN: r32288

gcc/testsuite/gcc.c-torture/execute/20000224-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/execute/20000224-1.c b/gcc/testsuite/gcc.c-torture/execute/20000224-1.c
new file mode 100644 (file)
index 0000000..51c9203
--- /dev/null
@@ -0,0 +1,28 @@
+int loop_1 = 100;
+int loop_2 = 7;
+int flag = 0;
+
+int test (void)
+{
+    int i;
+    int counter  = 0;
+
+    while (loop_1 > counter) {
+        if (flag & 1) {
+            for (i = 0; i < loop_2; i++) {
+                counter++;
+            }
+        }
+        flag++;
+    }
+    return 1;
+}
+
+int main()
+{
+    if (test ())
+      abort ();
+    
+    exit (0);
+}
+
This page took 0.074853 seconds and 5 git commands to generate.