diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-18 20:06:09 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-18 20:06:09 +0000 |
commit | 7549c5589ac0d2087e55f2bdd4854adef23f29fd (patch) | |
tree | c737491243325016f36bdb3ad038a701fe44da4c /test/Sema/struct-packed-align.c | |
parent | e00d5c00f35163308a18ec1d3d2b9dfa1ecaf234 (diff) | |
download | clang-7549c5589ac0d2087e55f2bdd4854adef23f29fd.tar.gz |
__attribute__((aligned)) was being ignored!
This knocks out another 8 gcc/compat/i386 & x86_64 failures.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/struct-packed-align.c')
-rw-r--r-- | test/Sema/struct-packed-align.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Sema/struct-packed-align.c b/test/Sema/struct-packed-align.c index 8173f0f282..2b5a889580 100644 --- a/test/Sema/struct-packed-align.c +++ b/test/Sema/struct-packed-align.c @@ -46,6 +46,14 @@ struct __attribute__((aligned(8))) as1 { extern int e1[sizeof(struct as1) == 8 ? 1 : -1]; extern int e2[__alignof(struct as1) == 8 ? 1 : -1]; +// FIXME: Will need to force arch once max usable alignment isn't hard +// coded. +struct __attribute__((aligned)) as1_2 { + char c; +}; +extern int e1_2[sizeof(struct as1_2) == 16 ? 1 : -1]; +extern int e2_2[__alignof(struct as1_2) == 16 ? 1 : -1]; + struct as2 { char c; int __attribute__((aligned(8))) a; |