Check that the first and third characters, s and u,
authorDuncan Sands <baldrick@free.fr>
Fri, 9 Nov 2007 07:47:29 +0000 (07:47 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 9 Nov 2007 07:47:29 +0000 (07:47 +0000)
are accessed with an alignment of 2 not 1.

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

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

diff --git a/test/CFrontend/2007-11-07-CopyAggregateAlign.c b/test/CFrontend/2007-11-07-CopyAggregateAlign.c
new file mode 100644 (file)
index 0000000..8bd94b0
--- /dev/null
@@ -0,0 +1,3 @@
+// RUN: %llvmgcc -S %s -o - | grep "align 2" | count 6
+struct A { char s, t, u, v; short a; };
+void q() { struct A a, b; a = b; }