]> granicus.if.org Git - clang/commitdiff
Test that we're not forwarding on -g options to the non integrated assembler.
authorEric Christopher <echristo@gmail.com>
Thu, 7 Jan 2016 01:23:12 +0000 (01:23 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 7 Jan 2016 01:23:12 +0000 (01:23 +0000)
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

test/Driver/gcc_forward.c

index 4892bd92ac69bc33d65c2a310a02e81e9536828f..b8bd921a9114c1d9e6a0b53091a92c08c6b14281 100644 (file)
@@ -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"