2010-08-13 12:44:20 +08:00
|
|
|
// Check that we don't try to forward -Xclang or -mlinker-version to GCC.
|
|
|
|
//
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target powerpc-unknown-unknown \
|
2010-08-13 12:44:20 +08:00
|
|
|
// RUN: -ccc-clang-archs i386 -c %s \
|
|
|
|
// RUN: -Xclang foo-bar \
|
|
|
|
// RUN: -mlinker-version=10 -### 2> %t
|
|
|
|
// RUN: FileCheck < %t %s
|
|
|
|
//
|
|
|
|
// CHECK: gcc{{.*}}"
|
|
|
|
// CHECK-NOT: "-mlinker-version=10"
|
|
|
|
// CHECK-NOT: "-Xclang"
|
|
|
|
// CHECK-NOT: "foo-bar"
|
|
|
|
// CHECK: gcc_forward
|