• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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" "{{[^"]+}}.s"
15 //
16 // gnu-as
17 // CHECK: as{{[^"]*}}"
18 // CHECK: "-o" "{{[^"]+}}.o"
19 //
20 // gcc-ld
21 // CHECK: gcc{{[^"]*}}"
22 // CHECK-NOT: "-mlinker-version=10"
23 // CHECK-NOT: "-Xclang"
24 // CHECK-NOT: "foo-bar"
25 // CHECK-NOT: "-Wall"
26 // CHECK-NOT: "-Wdocumentation"
27 // CHECK: -march
28 // CHECK-NOT: "-mlinker-version=10"
29 // CHECK-NOT: "-Xclang"
30 // CHECK-NOT: "foo-bar"
31 // CHECK-NOT: "-Wall"
32 // CHECK-NOT: "-Wdocumentation"
33 // CHECK: "-o" "a.out"
34