blob: c584a4e8faf5bd2b0098cdb3ba711eb1218e2a27 [file] [log] [blame]
Daniel Dunbarcaeed1d2010-08-13 04:44:20 +00001// Check that we don't try to forward -Xclang or -mlinker-version to GCC.
2//
3// RUN: %clang -ccc-host-triple powerpc-unknown-unknown \
4// RUN: -ccc-clang-archs i386 -c %s \
5// RUN: -Xclang foo-bar \
6// RUN: -mlinker-version=10 -### 2> %t
7// RUN: FileCheck < %t %s
8//
9// CHECK: gcc{{.*}}"
10// CHECK-NOT: "-mlinker-version=10"
11// CHECK-NOT: "-Xclang"
12// CHECK-NOT: "foo-bar"
13// CHECK: gcc_forward