summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit0c7fba914ddb00afbbe73b91a4c8baef2df239f5 (patch)
treef82141de43f05fb0951c8ebd6dff0ac316a3ce4b /llvm
parent1445725759982f09c32de7c99aed2b2febdcd27f (diff)
downloadbcm5719-llvm-0c7fba914ddb00afbbe73b91a4c8baef2df239f5.tar.gz
bcm5719-llvm-0c7fba914ddb00afbbe73b91a4c8baef2df239f5.zip
Check that the first and third characters, s and u,
are accessed with an alignment of 2 not 1. llvm-svn: 43932
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/CFrontend/2007-11-07-CopyAggregateAlign.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/CFrontend/2007-11-07-CopyAggregateAlign.c b/llvm/test/CFrontend/2007-11-07-CopyAggregateAlign.c
new file mode 100644
index 00000000000..8bd94b00a78
--- /dev/null
+++ b/llvm/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; }
OpenPOWER on IntegriCloud