diff --git a/test/CFrontend/2007-02-07-AddrLabel.c b/test/CFrontend/2007-02-07-AddrLabel.c new file mode 100644 index 00000000000..144f62d0992 --- /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; + }