blob: 0b5440b87267dc5d4c8e5b209827e98d56a35ba3 [file] [log] [blame]
Daniel Dunbar5ce872f2011-03-18 20:14:03 +00001// Check that we transparently fallback to llvm-gcc for i386 kexts, we don't
2// support the ABI they use (yet).
3
4// RUN: %clang -ccc-host-triple i386-apple-darwin10 \
5// RUN: -fapple-kext -### -fsyntax-only %s 2> %t
6// RUN: FileCheck --check-prefix=CHECK < %t %s
7
8// CHECK: cc1plus"
9// CHECK: "-fapple-kext"
Bob Wilsona544aee2011-08-13 23:48:55 +000010
11// RUN: %clang -ccc-host-triple i386-apple-darwin10 \
12// RUN: -mkernel -### -fsyntax-only %s 2> %t
13// RUN: FileCheck --check-prefix=CHECK-MKERNEL < %t %s
14
15// CHECK-MKERNEL: cc1plus"
16// CHECK-MKERNEL: "-mkernel"
Chad Rosier285f9a22011-08-17 18:24:55 +000017
18// RUN: %clang -ccc-host-triple i386-apple-darwin10 \
David Blaikie5f31f082011-10-18 05:54:07 +000019// RUN: -Wno-self-assign -Wc++11-extensions -Wno-microsoft -Wmicrosoft -Wvla \
Chad Rosier80717972011-08-26 18:30:43 +000020// RUN: -faltivec -mthumb -mcpu=G4 -mlongcall -mno-longcall -msoft-float \
Chad Rosier285f9a22011-08-17 18:24:55 +000021// RUN: -fapple-kext -### -fsyntax-only %s 2> %t
22// RUN: FileCheck --check-prefix=CHECK-UNSUPPORTED < %t %s
23
24// CHECK-UNSUPPORTED: cc1plus"
25// CHECK-UNSUPPORTED-NOT: "-Wno-self-assign"
David Blaikie5f31f082011-10-18 05:54:07 +000026// CHECK-UNSUPPORTED-NOT: "-Wc++11-extensions"
Chad Rosier04225c12011-08-18 01:18:28 +000027// CHECK-UNSUPPORTED-NOT: "-Wno-microsoft"
28// CHECK-UNSUPPORTED-NOT: "-Wmicrosoft"
Chad Rosier80717972011-08-26 18:30:43 +000029// CHECK-UNSUPPORTED-NOT: "-Wvla"
30// CHECK-UNSUPPORTED-NOT: "-faltivec"
31// CHECK-UNSUPPORTED-NOT: "-mthumb"
32// CHECK-UNSUPPORTED-NOT: "-mlongcall"
33// CHECK-UNSUPPORTED: "-mno-longcall"
34// CHECK-UNSUPPORTED: "-msoft-float"
35
Chad Rosier4fe4d732011-09-08 00:38:00 +000036// RUN: %clang -ccc-host-triple i386-apple-darwin10 \
37// RUN: -Wconstant-logical-operand -save-temps \
38// RUN: -fapple-kext -### -fsyntax-only %s 2> %t
39// RUN: FileCheck --check-prefix=CHECK-UNSUPPORTED2 < %t %s
40
41// CHECK-UNSUPPORTED2: cc1plus"
42// CHECK-UNSUPPORTED2-NOT: "-Wconstant-logical-operand"