From a18624057f40bdfcc0d7eb3238ddd02381ec4cd2 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 8 May 2007 06:10:12 +0000 Subject: [PATCH] New test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36930 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2007-05-07-PaddingElements.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/CFrontend/2007-05-07-PaddingElements.c diff --git a/test/CFrontend/2007-05-07-PaddingElements.c b/test/CFrontend/2007-05-07-PaddingElements.c new file mode 100644 index 00000000000..c0a65f054ac --- /dev/null +++ b/test/CFrontend/2007-05-07-PaddingElements.c @@ -0,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; +} -- 2.34.1