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

Devang Patel dpatel at apple.com
Mon May 7 23:10:30 PDT 2007



Changes in directory llvm/test/CFrontend:

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

New test.


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

 2007-05-07-PaddingElements.c |   12 ++++++++++++
 1 files changed, 12 insertions(+)


Index: llvm/test/CFrontend/2007-05-07-PaddingElements.c
diff -c /dev/null llvm/test/CFrontend/2007-05-07-PaddingElements.c:1.1
*** /dev/null	Tue May  8 01:10:22 2007
--- llvm/test/CFrontend/2007-05-07-PaddingElements.c	Tue May  8 01:10:12 2007
***************
*** 0 ****
--- 1,12 ----
+ // PR 1278
+ // RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | not grep "4 x i8] zeroinitializer"
+ // RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | not grep "i32 0, i32 2"
+ struct s {
+   double d1;
+   int s1;
+ };
+ 
+ struct s foo(void) {
+   struct s S = {1.1, 2};
+   return S;
+ }






More information about the llvm-commits mailing list