diff options
author | Duncan Sands <baldrick@free.fr> | 2007-11-09 07:46:02 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-11-09 07:46:02 +0000 |
commit | 506f9089a482191e0b95827885ffb3ecec1aaf4d (patch) | |
tree | 30cc1f157f6d383c7b3da20c212da592e90e48a3 | |
parent | 6902e84ba0f7e35500e09149816353d41305be2e (diff) |
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
-rw-r--r-- | test/CFrontend/2007-11-07-ZeroAggregateAlign.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CFrontend/2007-11-07-ZeroAggregateAlign.c b/test/CFrontend/2007-11-07-ZeroAggregateAlign.c new file mode 100644 index 0000000000..424120d6c2 --- /dev/null +++ b/test/CFrontend/2007-11-07-ZeroAggregateAlign.c @@ -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}; } |