From 0c7fba914ddb00afbbe73b91a4c8baef2df239f5 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Fri, 9 Nov 2007 07:47:29 +0000 Subject: [PATCH] Check that the first and third characters, s and u, are accessed with an alignment of 2 not 1. llvm-svn: 43932 --- llvm/test/CFrontend/2007-11-07-CopyAggregateAlign.c | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 llvm/test/CFrontend/2007-11-07-CopyAggregateAlign.c 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 000000000000..8bd94b00a783 --- /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; }