Home | History | Annotate | Download | only in Driver
      1 // Check that we don't try to forward -Xclang or -mlinker-version to GCC.
      2 // PR12920 -- Check also we may not forward W_Group options to GCC.
      3 //
      4 // RUN: %clang -target powerpc-unknown-unknown \
      5 // RUN:   %s \
      6 // RUN:   -Wall -Wdocumentation \
      7 // RUN:   -Xclang foo-bar \
      8 // RUN:   -march=x86_64 \
      9 // RUN:   -mlinker-version=10 -### 2> %t
     10 // RUN: FileCheck < %t %s
     11 //
     12 // clang-cc1
     13 // CHECK: "-Wall" "-Wdocumentation"
     14 // CHECK: "-o" "{{[^"]+}}.o"
     15 //
     16 // gcc-ld
     17 // CHECK: gcc{{[^"]*}}"
     18 // CHECK-NOT: "-mlinker-version=10"
     19 // CHECK-NOT: "-Xclang"
     20 // CHECK-NOT: "foo-bar"
     21 // CHECK-NOT: "-Wall"
     22 // CHECK-NOT: "-Wdocumentation"
     23 // CHECK: -march
     24 // CHECK-NOT: "-mlinker-version=10"
     25 // CHECK-NOT: "-Xclang"
     26 // CHECK-NOT: "foo-bar"
     27 // CHECK-NOT: "-Wall"
     28 // CHECK-NOT: "-Wdocumentation"
     29 // CHECK: "-o" "a.out"
     30