Home | History | Annotate | Download | only in Driver
      1 // 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 -target 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"
     10 
     11 // RUN: %clang -target 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"
     17 
     18 // RUN: %clang -target i386-apple-darwin10 \
     19 // RUN:   -Wno-self-assign -Wc++11-extensions -Wno-microsoft -Wmicrosoft -Wvla \
     20 // RUN:   -faltivec -mthumb -mcpu=G4 -mlongcall -mno-longcall -msoft-float \
     21 // 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"
     26 // CHECK-UNSUPPORTED-NOT: "-Wc++11-extensions"
     27 // CHECK-UNSUPPORTED-NOT: "-Wno-microsoft"
     28 // CHECK-UNSUPPORTED-NOT: "-Wmicrosoft"
     29 // 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 
     36 // RUN: %clang -target 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"
     43 
     44 // Check that --serialize-diagnostics does not cause an "argument unused" error.
     45 // RUN: %clang -target i386-apple-darwin10 \
     46 // RUN:   -Wall -fapple-kext -### --serialize-diagnostics %t.dia -c %s 2>&1 | \
     47 // RUN:   FileCheck --check-prefix=CHECK-UNUSED %s
     48 
     49 // CHECK-UNUSED-NOT: argument unused
     50 // CHECK-UNUSED: cc1plus
     51