diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-05-25 21:27:19 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-05-25 21:27:19 +0000 |
commit | 1eed60297ef4701b899c6a3b9680bf08f3403422 (patch) | |
tree | 4c56ec5083069c8f061ab0c285e36275fab1e61e /test/Sema | |
parent | b53f08ac87f1e1f4bc2fbfa4560c2183a82020ee (diff) | |
download | clang-1eed60297ef4701b899c6a3b9680bf08f3403422.tar.gz |
Extend getPreferredTypeAlign to handle _Complex double and long long
correctly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72401 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema')
-rw-r--r-- | test/Sema/align-x86.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/Sema/align-x86.c b/test/Sema/align-x86.c index f6668ddb32..2bc1cc8485 100644 --- a/test/Sema/align-x86.c +++ b/test/Sema/align-x86.c @@ -3,4 +3,12 @@ // PR3433 double g1; short chk1[__alignof__(g1) == 8 ? 1 : -1]; -short chk2[__alignof__(double) == 8 ? 1 : -1]; +short chk2[__alignof__(double) == 8 ? 1 : -1]; + +long long g2; +short chk1[__alignof__(g2) == 8 ? 1 : -1]; +short chk2[__alignof__(long long) == 8 ? 1 : -1]; + +_Complex double g3; +short chk1[__alignof__(g3) == 8 ? 1 : -1]; +short chk2[__alignof__(_Complex double) == 8 ? 1 : -1]; |