aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2007-02-07-AddrLabel.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2007-02-07-AddrLabel.c')
-rw-r--r--test/FrontendC/2007-02-07-AddrLabel.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/FrontendC/2007-02-07-AddrLabel.c b/test/FrontendC/2007-02-07-AddrLabel.c
new file mode 100644
index 0000000..144f62d
--- /dev/null
+++ b/test/FrontendC/2007-02-07-AddrLabel.c
@@ -0,0 +1,10 @@
+// PR947
+// RUN: %llvmgcc %s -c -o -
+
+void foo() {
+ void *ptr;
+ label:
+ ptr = &&label;
+
+ goto *ptr;
+ }