[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Driver / m68k-macros.cpp
blob8f85815e7552c40fbeef14bfb41bd5bd98b16690
1 // Check macro definitions
2 // RUN: %clang -target m68k-unknown-linux -m68000 -dM -E %s | FileCheck --check-prefix=CHECK-MX %s
3 // CHECK-MX: #define __mc68000 1
4 // CHECK-MX: #define __mc68000__ 1
5 // CHECK-MX: #define mc68000 1
7 // RUN: %clang -target m68k-unknown-linux -m68010 -dM -E %s | FileCheck --check-prefix=CHECK-MX10 %s
8 // CHECK-MX10: #define __mc68000 1
9 // CHECK-MX10: #define __mc68000__ 1
10 // CHECK-MX10: #define __mc68010 1
11 // CHECK-MX10: #define __mc68010__ 1
12 // CHECK-MX10: #define mc68000 1
13 // CHECK-MX10: #define mc68010 1
15 // RUN: %clang -target m68k-unknown-linux -m68020 -dM -E %s | FileCheck --check-prefix=CHECK-MX20 %s
16 // CHECK-MX20: #define __mc68000 1
17 // CHECK-MX20: #define __mc68000__ 1
18 // CHECK-MX20: #define __mc68020 1
19 // CHECK-MX20: #define __mc68020__ 1
20 // CHECK-MX20: #define mc68000 1
21 // CHECK-MX20: #define mc68020 1
23 // RUN: %clang -target m68k-unknown-linux -m68030 -dM -E %s | FileCheck --check-prefix=CHECK-MX30 %s
24 // CHECK-MX30: #define __mc68000 1
25 // CHECK-MX30: #define __mc68000__ 1
26 // CHECK-MX30: #define __mc68030 1
27 // CHECK-MX30: #define __mc68030__ 1
28 // CHECK-MX30: #define mc68000 1
29 // CHECK-MX30: #define mc68030 1
31 // RUN: %clang -target m68k-unknown-linux -m68040 -dM -E %s | FileCheck --check-prefix=CHECK-MX40 %s
32 // CHECK-MX40: #define __mc68000 1
33 // CHECK-MX40: #define __mc68000__ 1
34 // CHECK-MX40: #define __mc68040 1
35 // CHECK-MX40: #define __mc68040__ 1
36 // CHECK-MX40: #define mc68000 1
37 // CHECK-MX40: #define mc68040 1
39 // RUN: %clang -target m68k-unknown-linux -m68060 -dM -E %s | FileCheck --check-prefix=CHECK-MX60 %s
40 // CHECK-MX60: #define __mc68000 1
41 // CHECK-MX60: #define __mc68000__ 1
42 // CHECK-MX60: #define __mc68060 1
43 // CHECK-MX60: #define __mc68060__ 1
44 // CHECK-MX60: #define mc68000 1
45 // CHECK-MX60: #define mc68060 1