Check that accesses to the second short, t, have

an alignment of 2 rather than 4.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43931 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2007-11-09 07:46:02 +00:00
parent 6902e84ba0
commit 506f9089a4

View File

@ -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}; }