summaryrefslogtreecommitdiffstats
path: root/test/Driver/clang-c-as-cxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/clang-c-as-cxx.c')
-rw-r--r--test/Driver/clang-c-as-cxx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Driver/clang-c-as-cxx.c b/test/Driver/clang-c-as-cxx.c
new file mode 100644
index 0000000..0e28178
--- /dev/null
+++ b/test/Driver/clang-c-as-cxx.c
@@ -0,0 +1,6 @@
+// RUN: %clangxx -### %s 2>&1 | FileCheck %s
+//
+// PR5803
+//
+// CHECK: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
+// CHECK: "-cc1" {{.*}} "-x" "c++"
OpenPOWER on IntegriCloud