diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-02-17 20:32:58 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-17 20:32:58 +0000 |
commit | 51679c5e4828b8a64953c4f3db162ca963bf7b03 (patch) | |
tree | ff09ba25f3ca73ca21509d2493aea3ee5c855bd0 /test/Driver/clang-c-as-cxx.c | |
parent | 679d6054072b04adac3eeb9508546e2485ad059f (diff) |
PR5803: clang++: Treat untyped 'C' inputs as C++.
- Patch by Andrzej K. Haczewski, with a tweak by me to emit a 'deprecated'
diagnostic when we do this. We'll see what zee users say.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96511 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/clang-c-as-cxx.c')
-rw-r--r-- | test/Driver/clang-c-as-cxx.c | 6 |
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 0000000000..0e2817888d --- /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++" |