summaryrefslogtreecommitdiffstats
path: root/test/Driver/ccc-as-cpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/ccc-as-cpp.c')
-rw-r--r--test/Driver/ccc-as-cpp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Driver/ccc-as-cpp.c b/test/Driver/ccc-as-cpp.c
new file mode 100644
index 0000000..feead51
--- /dev/null
+++ b/test/Driver/ccc-as-cpp.c
@@ -0,0 +1,6 @@
+// REQUIRES: shell
+// RUN: ln -sf %clang %T/clang-cpp
+
+// PR13529: Don't crash.
+// RUN: %T/clang-cpp -lfoo -M %s 2>&1 | FileCheck --check-prefix=CHECK-PR13529 %s
+// CHECK-PR13529: warning: -lfoo: 'linker' input unused in cpp mode
OpenPOWER on IntegriCloud