2010-08-13 12:44:20 +08:00
|
|
|
// Check that we don't try to forward -Xclang or -mlinker-version to GCC.
|
2013-08-19 19:51:51 +08:00
|
|
|
// PR12920 -- Check also we may not forward W_Group options to GCC.
|
2010-08-13 12:44:20 +08:00
|
|
|
//
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target powerpc-unknown-unknown \
|
2013-08-19 19:51:51 +08:00
|
|
|
// RUN: %s \
|
|
|
|
// RUN: -Wall -Wdocumentation \
|
2010-08-13 12:44:20 +08:00
|
|
|
// RUN: -Xclang foo-bar \
|
2013-06-20 09:33:59 +08:00
|
|
|
// RUN: -march=x86_64 \
|
2010-08-13 12:44:20 +08:00
|
|
|
// RUN: -mlinker-version=10 -### 2> %t
|
|
|
|
// RUN: FileCheck < %t %s
|
|
|
|
//
|
2013-08-19 19:51:51 +08:00
|
|
|
// clang-cc1
|
|
|
|
// CHECK: "-Wall" "-Wdocumentation"
|
|
|
|
// CHECK: "-o" "{{[^"]+}}.s"
|
|
|
|
//
|
2013-11-24 00:40:57 +08:00
|
|
|
// gnu-as
|
|
|
|
// CHECK: as{{[^"]*}}"
|
2013-08-19 19:51:51 +08:00
|
|
|
// CHECK: "-o" "{{[^"]+}}.o"
|
|
|
|
//
|
|
|
|
// gcc-ld
|
|
|
|
// CHECK: gcc{{[^"]*}}"
|
2010-08-13 12:44:20 +08:00
|
|
|
// CHECK-NOT: "-mlinker-version=10"
|
|
|
|
// CHECK-NOT: "-Xclang"
|
|
|
|
// CHECK-NOT: "foo-bar"
|
2013-08-19 19:51:51 +08:00
|
|
|
// CHECK-NOT: "-Wall"
|
|
|
|
// CHECK-NOT: "-Wdocumentation"
|
2013-06-20 09:33:59 +08:00
|
|
|
// CHECK: -march
|
|
|
|
// CHECK-NOT: "-mlinker-version=10"
|
|
|
|
// CHECK-NOT: "-Xclang"
|
|
|
|
// CHECK-NOT: "foo-bar"
|
2013-08-19 19:51:51 +08:00
|
|
|
// CHECK-NOT: "-Wall"
|
|
|
|
// CHECK-NOT: "-Wdocumentation"
|
|
|
|
// CHECK: "-o" "a.out"
|