From 89bd4c47e1d389b7876aeaa392fd4558d5396c88 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 8 Feb 2007 04:34:03 +0000 Subject: [PATCH] New testcase for PR947 llvm-svn: 34038 --- test/CFrontend/2007-02-07-AddrLabel.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/CFrontend/2007-02-07-AddrLabel.c 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; + }