[llvm-commits] CVS: llvm/test/CFrontend/2007-02-07-AddrLabel.c

Chris Lattner sabre at nondot.org
Wed Feb 7 20:34:18 PST 2007



Changes in directory llvm/test/CFrontend:

2007-02-07-AddrLabel.c added (r1.1)
---
Log message:

New testcase for PR947: http://llvm.org/PR947 


---
Diffs of the changes:  (+10 -0)

 2007-02-07-AddrLabel.c |   10 ++++++++++
 1 files changed, 10 insertions(+)


Index: llvm/test/CFrontend/2007-02-07-AddrLabel.c
diff -c /dev/null llvm/test/CFrontend/2007-02-07-AddrLabel.c:1.1
*** /dev/null	Wed Feb  7 22:34:13 2007
--- llvm/test/CFrontend/2007-02-07-AddrLabel.c	Wed Feb  7 22:34:03 2007
***************
*** 0 ****
--- 1,10 ----
+ // PR947
+ // RUN: %llvmgcc %s -c -o - 
+ 
+ void foo() {
+     void *ptr;
+   label:
+     ptr = &&label;
+ 
+     goto *ptr;
+   }






More information about the llvm-commits mailing list