diff options
Diffstat (limited to 'clang/test/Driver/gcc_forward.c')
-rw-r--r-- | clang/test/Driver/gcc_forward.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/Driver/gcc_forward.c b/clang/test/Driver/gcc_forward.c new file mode 100644 index 0000000..77f401b --- /dev/null +++ b/clang/test/Driver/gcc_forward.c @@ -0,0 +1,13 @@ +// Check that we don't try to forward -Xclang or -mlinker-version to GCC. +// +// RUN: %clang -target powerpc-unknown-unknown \ +// 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 |