new testcase for PR580
authorChris Lattner <sabre@nondot.org>
Wed, 15 Jun 2005 22:42:53 +0000 (22:42 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 15 Jun 2005 22:42:53 +0000 (22:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22222 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2005-06-15-ExpandGotoInternalProblem.c [new file with mode: 0644]

diff --git a/test/CFrontend/2005-06-15-ExpandGotoInternalProblem.c b/test/CFrontend/2005-06-15-ExpandGotoInternalProblem.c
new file mode 100644 (file)
index 0000000..0b49f52
--- /dev/null
@@ -0,0 +1,13 @@
+// RUN: %llvmgcc -std=c99 %s -S -o - | gccas -o /dev/null
+// PR580
+
+int X, Y;
+int foo() {
+  int i;
+        for (i=0; i<100; i++ )
+        {
+                break;
+                i = ( X || Y ) ;
+        }
+}
+