[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Preprocessor / macho-embedded-predefines.c
blob74f29199218c4b5ada97694c871704891e286216
1 // RUN: %clang_cc1 -E -dM -triple thumbv7m-apple-unknown-macho -target-cpu cortex-m3 %s | FileCheck %s -check-prefix CHECK-7M
3 // CHECK-7M: #define __APPLE_CC__
4 // CHECK-7M: #define __APPLE__
5 // CHECK-7M: #define __ARM_ARCH_7M__
6 // CHECK-7M-NOT: #define __MACH__
8 // RUN: %clang_cc1 -E -dM -triple thumbv7em-apple-unknown-macho -target-cpu cortex-m4 %s | FileCheck %s -check-prefix CHECK-7EM
10 // CHECK-7EM: #define __APPLE_CC__
11 // CHECK-7EM: #define __APPLE__
12 // CHECK-7EM: #define __ARM_ARCH_7EM__
13 // CHECK-7EM-NOT: #define __MACH__
15 // RUN: %clang_cc1 -E -dM -triple thumbv6m-apple-unknown-macho -target-cpu cortex-m0 %s | FileCheck %s -check-prefix CHECK-6M
17 // CHECK-6M: #define __APPLE_CC__
18 // CHECK-6M: #define __APPLE__
19 // CHECK-6M: #define __ARM_ARCH_6M__
20 // CHECK-6M-NOT: #define __MACH__