diff options
Diffstat (limited to 'clang/test/Driver/clang-c-as-cxx.c')
-rw-r--r-- | clang/test/Driver/clang-c-as-cxx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/clang-c-as-cxx.c b/clang/test/Driver/clang-c-as-cxx.c new file mode 100644 index 0000000..0e28178 --- /dev/null +++ b/clang/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++" |