aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-08 04:34:03 +0000
committerChris Lattner <sabre@nondot.org>2007-02-08 04:34:03 +0000
commitf596a97287dc7c00486089162796dd66b627dadf (patch)
tree44ec295d2b333a31b0c09e3024f0ee93464cb29c
parentd0813e47c285473f71223ae0c3be336eaf8f0e53 (diff)
New testcase for PR947
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34038 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CFrontend/2007-02-07-AddrLabel.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CFrontend/2007-02-07-AddrLabel.c b/test/CFrontend/2007-02-07-AddrLabel.c
new file mode 100644
index 0000000000..144f62d099
--- /dev/null
+++ b/test/CFrontend/2007-02-07-AddrLabel.c
@@ -0,0 +1,10 @@
+// PR947
+// RUN: %llvmgcc %s -c -o -
+
+void foo() {
+ void *ptr;
+ label:
+ ptr = &&label;
+
+ goto *ptr;
+ }