[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / clang / test / Driver / apple-kext-mkernel.c
blobde905e169c139e4f9b177b4410952b1604ce0fde
1 // RUN: %clang -target x86_64-apple-darwin11 -mkernel -### -fsyntax-only %s 2>&1 | FileCheck --check-prefix=CHECK-X86 %s
2 // RUN: %clang -target x86_64-apple-darwin11 -mkernel -### -fsyntax-only -fbuiltin -fno-builtin -fcommon -fno-common %s 2>&1 | FileCheck --check-prefix=CHECK-X86 %s
4 // CHECK-X86: "-disable-red-zone"
5 // CHECK-X86: "-fno-builtin"
6 // CHECK-X86: "-fno-rtti"
7 // CHECK-X86-NOT: "-fcommon"
9 // RUN: %clang -target x86_64-apple-darwin11 -mkernel -### -fsyntax-only -fbuiltin -fcommon %s 2>&1 | FileCheck --check-prefix=CHECK-X86-2 %s
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"
16 // RUN: %clang --target=x86_64-apple-darwin11 -arch armv7 -mkernel -mstrict-align -### -fsyntax-only %s 2>&1 | FileCheck --check-prefix=CHECK-ARM %s
17 // RUN: %clang --target=x86_64-apple-darwin11 -arch armv7 -mkernel -mstrict-align -### -fsyntax-only -fbuiltin -fno-builtin -fcommon -fno-common %s 2>&1 | FileCheck --check-prefix=CHECK-ARM %s
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-NOT: "-fcommon"
26 // RUN: %clang -target x86_64-apple-darwin11 \
27 // RUN: -Werror -fno-builtin -fno-exceptions -fno-common -fno-rtti \
28 // RUN: -mkernel -fsyntax-only %s