]> granicus.if.org Git - clang/commitdiff
merge an indirect goto test into statements, add another
authorChris Lattner <sabre@nondot.org>
Tue, 13 Oct 2009 06:52:43 +0000 (06:52 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 13 Oct 2009 06:52:43 +0000 (06:52 +0000)
hairier (but nonsensical) example.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83951 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/PR3869-indirect-goto-long.c [deleted file]
test/CodeGen/statements.c

diff --git a/test/CodeGen/PR3869-indirect-goto-long.c b/test/CodeGen/PR3869-indirect-goto-long.c
deleted file mode 100644 (file)
index 140e4ec..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-// RUN: clang-cc -emit-llvm-bc -o - %s
-// PR3869
-int a(long long b) { goto *b; }
-
index 1ff7601adf6888ec80d9828c22458100f76a3865..c50d1d5664c9b0f9a3ce891655a6406912f060fc 100644 (file)
@@ -11,3 +11,23 @@ bar();
 int test2() { return; }
 void test3() { return 4; }
 
+
+void test4() {
+bar:
+baz:
+blong:
+bing:
+ ;
+static long x = &&bar; // - &&baz;
+static long y = &&baz;
+  &&bing;
+  &&blong;
+  if (y)
+    goto *y;
+
+  goto *x;
+}
+
+// PR3869
+int test5(long long b) { goto *b; }
+