summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorOliver Stannard <oliver.stannard@arm.com>2017-04-18 13:12:36 +0000
committerOliver Stannard <oliver.stannard@arm.com>2017-04-18 13:12:36 +0000
commit233310f3e602bdc076a5a82665517df8ce5aae94 (patch)
tree732abfe0fdb10e13c1b1531bde9d790f02ea4d89 /clang/test
parent36e23ecad05cc4984119aba49f09e42a402564ae (diff)
downloadbcm5719-llvm-233310f3e602bdc076a5a82665517df8ce5aae94.tar.gz
bcm5719-llvm-233310f3e602bdc076a5a82665517df8ce5aae94.zip
[ARM,AArch64] Define __ELF__ for arm-none-eabihf and AArch64
This macro is defined for arm-none-eabi as of r266625, but it should also be defined for eabihf and aarch64. llvm-svn: 300549
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Preprocessor/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/init.c b/clang/test/Preprocessor/init.c
index d48d476d700..7548fbaae2e 100644
--- a/clang/test/Preprocessor/init.c
+++ b/clang/test/Preprocessor/init.c
@@ -2378,6 +2378,9 @@
// ARM-NETBSD:#define __arm__ 1
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=arm-none-eabi < /dev/null | FileCheck -match-full-lines -check-prefix ARM-NONE-EABI %s
+// RUN: %clang_cc1 -E -dM -ffreestanding -triple=arm-none-eabihf < /dev/null | FileCheck -match-full-lines -check-prefix ARM-NONE-EABI %s
+// RUN: %clang_cc1 -E -dM -ffreestanding -triple=aarch64-none-eabi < /dev/null | FileCheck -match-full-lines -check-prefix ARM-NONE-EABI %s
+// RUN: %clang_cc1 -E -dM -ffreestanding -triple=aarch64-none-eabihf < /dev/null | FileCheck -match-full-lines -check-prefix ARM-NONE-EABI %s
// ARM-NONE-EABI: #define __ELF__ 1
// No MachO targets use the full EABI, even if AAPCS is used.
OpenPOWER on IntegriCloud