1 // RUN: %clang -target x86_64-apple-darwin10 \
2 // RUN: -mkernel -### -fsyntax-only %s 2> %t
3 // RUN: FileCheck --check-prefix=CHECK-X86 < %t %s
5 // CHECK-X86: "-disable-red-zone"
6 // CHECK-X86: "-fno-builtin"
7 // CHECK-X86: "-fno-rtti"
8 // CHECK-X86: "-fno-common"
10 // RUN: %clang -target x86_64-apple-darwin10 \
11 // RUN: -arch armv7 -mkernel -mstrict-align -### -fsyntax-only %s 2> %t
12 // RUN: FileCheck --check-prefix=CHECK-ARM < %t %s
14 // CHECK-ARM: "-target-feature" "+long-calls"
15 // CHECK-ARM: "-backend-option" "-arm-strict-align"
16 // CHECK-ARM-NOT: "-backend-option" "-arm-strict-align"
17 // CHECK-ARM: "-fno-builtin"
18 // CHECK-ARM: "-fno-rtti"
19 // CHECK-ARM: "-fno-common"
21 // RUN: %clang -target x86_64-apple-darwin10 \
22 // RUN: -Werror -fno-builtin -fno-exceptions -fno-common -fno-rtti \
23 // RUN: -mkernel -fsyntax-only %s