Check that accesses to the second short, t, have
authorDuncan Sands <baldrick@free.fr>
Fri, 9 Nov 2007 07:46:02 +0000 (07:46 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 9 Nov 2007 07:46:02 +0000 (07:46 +0000)
an alignment of 2 rather than 4.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43931 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2007-11-07-ZeroAggregateAlign.c [new file with mode: 0644]

diff --git a/test/CFrontend/2007-11-07-ZeroAggregateAlign.c b/test/CFrontend/2007-11-07-ZeroAggregateAlign.c
new file mode 100644 (file)
index 0000000..424120d
--- /dev/null
@@ -0,0 +1,3 @@
+// RUN: %llvmgcc -S %s -o - | grep "align 2"
+struct A { short s; short t; int i; };
+void q() { struct A a = {0}; }