diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-14 00:02:24 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-14 00:02:24 +0000 |
commit | a2a416150455d049e8663227fbe7c30c2a948618 (patch) | |
tree | 4e64d48eb9cbb0758aeea9570118a64cfc5c5d7c /test/Sema/align-arm-apcs.c | |
parent | 73b79596bac6f6169e5979d0c7241924259d2a76 (diff) |
ARM target tweaks.
- Change TargetData string to match llvm-gcc.
- Some -target-abi support for 'apcs-gnu', most importantly the alignment of double and long long changes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/align-arm-apcs.c')
-rw-r--r-- | test/Sema/align-arm-apcs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/align-arm-apcs.c b/test/Sema/align-arm-apcs.c new file mode 100644 index 0000000000..924ba9034d --- /dev/null +++ b/test/Sema/align-arm-apcs.c @@ -0,0 +1,4 @@ +// RUN: clang-cc -triple arm-unknown-unknown -target-abi=apcs-gnu -fsyntax-only -verify %s + +struct s0 { double f0; int f1; }; +char chk0[__alignof__(struct s0) == 4 ? 1 : -1]; |