aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-11-09 07:47:29 +0000
committerDuncan Sands <baldrick@free.fr>2007-11-09 07:47:29 +0000
commit6b9a2d329cc3536045ca56577cf1c07a5e0ad5cc (patch)
tree5f590e1252b55b227a2dca30de4566dbc430c809 /test
parent7392965a0daf7bd90f9b39dc25cee51ae50863f4 (diff)
downloadexternal_llvm-6b9a2d329cc3536045ca56577cf1c07a5e0ad5cc.zip
external_llvm-6b9a2d329cc3536045ca56577cf1c07a5e0ad5cc.tar.gz
external_llvm-6b9a2d329cc3536045ca56577cf1c07a5e0ad5cc.tar.bz2
Check that the first and third characters, s and u,
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
Diffstat (limited to 'test')
-rw-r--r--test/CFrontend/2007-11-07-CopyAggregateAlign.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CFrontend/2007-11-07-CopyAggregateAlign.c b/test/CFrontend/2007-11-07-CopyAggregateAlign.c
new file mode 100644
index 0000000..8bd94b0
--- /dev/null
+++ b/test/CFrontend/2007-11-07-CopyAggregateAlign.c
@@ -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; }