[llvm-commits] CVS: llvm/test/CFrontend/2007-02-16-VariableSizeStructArg.c

Chris Lattner sabre at nondot.org
Fri Feb 16 21:45:16 PST 2007



Changes in directory llvm/test/CFrontend:

2007-02-16-VariableSizeStructArg.c added (r1.1)
---
Log message:

testcase for PR1170: http://llvm.org/PR1170 


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

 2007-02-16-VariableSizeStructArg.c |    7 +++++++
 1 files changed, 7 insertions(+)


Index: llvm/test/CFrontend/2007-02-16-VariableSizeStructArg.c
diff -c /dev/null llvm/test/CFrontend/2007-02-16-VariableSizeStructArg.c:1.1
*** /dev/null	Fri Feb 16 23:45:07 2007
--- llvm/test/CFrontend/2007-02-16-VariableSizeStructArg.c	Fri Feb 16 23:44:57 2007
***************
*** 0 ****
--- 1,7 ----
+ // RUN: %llvmgcc -S %s -o - 
+ // PR1170
+ int f(int a, struct {int b[a];} c) {  return c.b[0]; }
+ 
+ int g(struct {int b[1];} c) {
+   return c.b[0];
+ }






More information about the llvm-commits mailing list