[llvm-commits] CVS: llvm/test/CFrontend/2007-05-07-NestedStructReturn.c

Duncan Sands baldrick at free.fr
Wed May 9 01:41:44 PDT 2007



Changes in directory llvm/test/CFrontend:

2007-05-07-NestedStructReturn.c added (r1.1)
---
Log message:

Testcase for 
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070507/049387.html


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

 2007-05-07-NestedStructReturn.c |   13 +++++++++++++
 1 files changed, 13 insertions(+)


Index: llvm/test/CFrontend/2007-05-07-NestedStructReturn.c
diff -c /dev/null llvm/test/CFrontend/2007-05-07-NestedStructReturn.c:1.1
*** /dev/null	Wed May  9 03:41:36 2007
--- llvm/test/CFrontend/2007-05-07-NestedStructReturn.c	Wed May  9 03:41:26 2007
***************
*** 0 ****
--- 1,13 ----
+ // RUN: %llvmgcc %s -S -fnested-functions -o - | grep {sret *%agg.result}
+ 
+ struct X { int m, n; };
+ 
+ struct X p(int n) {
+   struct X c(int m) {
+     struct X x;
+     x.m = m;
+     x.n = n;
+     return x;
+   }
+   return c(n);
+ }






More information about the llvm-commits mailing list