New testcase for PR947
authorChris Lattner <sabre@nondot.org>
Thu, 8 Feb 2007 04:34:03 +0000 (04:34 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 8 Feb 2007 04:34:03 +0000 (04:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34038 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2007-02-07-AddrLabel.c [new file with mode: 0644]

diff --git a/test/CFrontend/2007-02-07-AddrLabel.c b/test/CFrontend/2007-02-07-AddrLabel.c
new file mode 100644 (file)
index 0000000..144f62d
--- /dev/null
@@ -0,0 +1,10 @@
+// PR947
+// RUN: %llvmgcc %s -c -o - 
+
+void foo() {
+    void *ptr;
+  label:
+    ptr = &&label;
+
+    goto *ptr;
+  }