1 | // RUN: %clang -target x86_64-apple-darwin10 -mkernel -### -fsyntax-only %s 2>&1 | FileCheck --check-prefix=CHECK-X86 %s |
2 | // RUN: %clang -target x86_64-apple-darwin10 -mkernel -### -fsyntax-only -fbuiltin -fno-builtin -fcommon -fno-common %s 2>&1 | FileCheck --check-prefix=CHECK-X86 %s |
3 | |
4 | // CHECK-X86: "-disable-red-zone" |
5 | // CHECK-X86: "-fno-builtin" |
6 | // CHECK-X86: "-fno-rtti" |
7 | // CHECK-X86: "-fno-common" |
8 | |
9 | // RUN: %clang -target x86_64-apple-darwin10 -mkernel -### -fsyntax-only -fbuiltin -fcommon %s 2>&1 | FileCheck --check-prefix=CHECK-X86-2 %s |
10 | |
11 | // CHECK-X86-2: "-disable-red-zone" |
12 | // CHECK-X86-2-NOT: "-fno-builtin" |
13 | // CHECK-X86-2: "-fno-rtti" |
14 | // CHECK-X86-2-NOT: "-fno-common" |
15 | |
16 | // RUN: %clang -target x86_64-apple-darwin10 -arch armv7 -mkernel -mstrict-align -### -fsyntax-only %s 2>&1 | FileCheck --check-prefix=CHECK-ARM %s |
17 | // RUN: %clang -target x86_64-apple-darwin10 -arch armv7 -mkernel -mstrict-align -### -fsyntax-only -fbuiltin -fno-builtin -fcommon -fno-common %s 2>&1 | FileCheck --check-prefix=CHECK-ARM %s |
18 | |
19 | // CHECK-ARM: "-target-feature" "+long-calls" |
20 | // CHECK-ARM: "-target-feature" "+strict-align" |
21 | // CHECK-ARM-NOT: "-target-feature" "+strict-align" |
22 | // CHECK-ARM: "-fno-builtin" |
23 | // CHECK-ARM: "-fno-rtti" |
24 | // CHECK-ARM: "-fno-common" |
25 | |
26 | // RUN: %clang -target x86_64-apple-darwin10 \ |
27 | // RUN: -Werror -fno-builtin -fno-exceptions -fno-common -fno-rtti \ |
28 | // RUN: -mkernel -fsyntax-only %s |
29 | |