[cfe-commits] r83951 - in /cfe/trunk/test/CodeGen: PR3869-indirect-goto-long.c statements.c

Chris Lattner sabre at nondot.org
Mon Oct 12 23:52:43 PDT 2009


Author: lattner
Date: Tue Oct 13 01:52:43 2009
New Revision: 83951

URL: http://llvm.org/viewvc/llvm-project?rev=83951&view=rev
Log:
merge an indirect goto test into statements, add another
hairier (but nonsensical) example.

Removed:
    cfe/trunk/test/CodeGen/PR3869-indirect-goto-long.c
Modified:
    cfe/trunk/test/CodeGen/statements.c

Removed: cfe/trunk/test/CodeGen/PR3869-indirect-goto-long.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/PR3869-indirect-goto-long.c?rev=83950&view=auto

==============================================================================
--- cfe/trunk/test/CodeGen/PR3869-indirect-goto-long.c (original)
+++ cfe/trunk/test/CodeGen/PR3869-indirect-goto-long.c (removed)
@@ -1,4 +0,0 @@
-// RUN: clang-cc -emit-llvm-bc -o - %s
-// PR3869
-int a(long long b) { goto *b; }
-

Modified: cfe/trunk/test/CodeGen/statements.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/statements.c?rev=83951&r1=83950&r2=83951&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/statements.c (original)
+++ cfe/trunk/test/CodeGen/statements.c Tue Oct 13 01:52:43 2009
@@ -11,3 +11,23 @@
 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; }
+





More information about the cfe-commits mailing list