xref: /minix3/external/bsd/llvm/dist/clang/test/Driver/apple-kext-mkernel.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang -target x86_64-apple-darwin10 \
2*f4a2713aSLionel Sambuc // RUN:   -mkernel -### -fsyntax-only %s 2> %t
3*f4a2713aSLionel Sambuc // RUN: FileCheck --check-prefix=CHECK-X86 < %t %s
4*f4a2713aSLionel Sambuc 
5*f4a2713aSLionel Sambuc // CHECK-X86: "-disable-red-zone"
6*f4a2713aSLionel Sambuc // CHECK-X86: "-fno-builtin"
7*f4a2713aSLionel Sambuc // CHECK-X86: "-fno-rtti"
8*f4a2713aSLionel Sambuc // CHECK-X86: "-fno-common"
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc // RUN: %clang -target x86_64-apple-darwin10 \
11*f4a2713aSLionel Sambuc // RUN:   -arch armv7 -mkernel -mstrict-align -### -fsyntax-only %s 2> %t
12*f4a2713aSLionel Sambuc // RUN: FileCheck --check-prefix=CHECK-ARM < %t %s
13*f4a2713aSLionel Sambuc 
14*f4a2713aSLionel Sambuc // CHECK-ARM: "-backend-option" "-arm-long-calls"
15*f4a2713aSLionel Sambuc // CHECK-ARM: "-backend-option" "-arm-strict-align"
16*f4a2713aSLionel Sambuc // CHECK-ARM-NOT: "-backend-option" "-arm-strict-align"
17*f4a2713aSLionel Sambuc // CHECK-ARM: "-fno-builtin"
18*f4a2713aSLionel Sambuc // CHECK-ARM: "-fno-rtti"
19*f4a2713aSLionel Sambuc // CHECK-ARM: "-fno-common"
20*f4a2713aSLionel Sambuc 
21*f4a2713aSLionel Sambuc // RUN: %clang -target x86_64-apple-darwin10 \
22*f4a2713aSLionel Sambuc // RUN:   -Werror -fno-builtin -fno-exceptions -fno-common -fno-rtti \
23*f4a2713aSLionel Sambuc // RUN:   -mkernel -fsyntax-only %s
24