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