[llvm-commits] CVS: llvm/test/CFrontend/sret.c

Anton Korobeynikov asl at math.spbu.ru
Sun Apr 1 15:03:22 PDT 2007



Changes in directory llvm/test/CFrontend:

sret.c added (r1.1)
---
Log message:

Add testcase for correct sret handling.


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

 sret.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+)


Index: llvm/test/CFrontend/sret.c
diff -c /dev/null llvm/test/CFrontend/sret.c:1.1
*** /dev/null	Sun Apr  1 17:03:15 2007
--- llvm/test/CFrontend/sret.c	Sun Apr  1 17:03:04 2007
***************
*** 0 ****
--- 1,15 ----
+ // RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep 'sret' | wc -l | grep '5'
+ 
+ struct abc {
+  int a;
+  int b;
+  int c;
+ };
+  
+ struct abc foo1(void);
+ struct abc foo2();
+ 
+ void bar() {
+   struct abc dummy1 = foo1();
+   struct abc dummy2 = foo2();
+ }
\ No newline at end of file






More information about the llvm-commits mailing list