summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-06-15 22:42:53 +0000
committerChris Lattner <sabre@nondot.org>2005-06-15 22:42:53 +0000
commit0c2be5094c0806243fc570043f330cef401b22e1 (patch)
treee89a9f29a7d2ee37eb30b4a9647df3c5ec4d8c7c /llvm
parentdf81539278b238151e5b0b48290acdd7776d1aea (diff)
downloadbcm5719-llvm-0c2be5094c0806243fc570043f330cef401b22e1.tar.gz
bcm5719-llvm-0c2be5094c0806243fc570043f330cef401b22e1.zip
new testcase for PR580
llvm-svn: 22222
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/Regression/CFrontend/2005-06-15-ExpandGotoInternalProblem.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Regression/CFrontend/2005-06-15-ExpandGotoInternalProblem.c b/llvm/test/Regression/CFrontend/2005-06-15-ExpandGotoInternalProblem.c
new file mode 100644
index 00000000000..0b49f52b1f5
--- /dev/null
+++ b/llvm/test/Regression/CFrontend/2005-06-15-ExpandGotoInternalProblem.c
@@ -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 ) ;
+ }
+}
+
OpenPOWER on IntegriCloud