From: Eric Christopher Date: Thu, 7 Jan 2016 01:23:12 +0000 (+0000) Subject: Test that we're not forwarding on -g options to the non integrated assembler. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50ccd0d378e1ae094f876630770982817baccecc;p=clang Test that we're not forwarding on -g options to the non integrated assembler. This is adding a test for an old fixed PR to make sure we don't regress. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@257009 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/gcc_forward.c b/test/Driver/gcc_forward.c index 4892bd92ac..b8bd921a91 100644 --- a/test/Driver/gcc_forward.c +++ b/test/Driver/gcc_forward.c @@ -27,3 +27,9 @@ // CHECK-NOT: "-Wall" // CHECK-NOT: "-Wdocumentation" // CHECK: "-o" "a.out" + +// Check that we're not forwarding -g options to the assembler +// RUN: %clang -g -target x86_64-unknown-linux-gnu -no-integrated-as -c %s -### 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-ASM %s +// CHECK-ASM: as +// CHECK-ASM-NOT: "-g"