aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/type-convert-construct.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-02-28 18:30:25 +0000
committerDouglas Gregor <dgregor@apple.com>2010-02-28 18:30:25 +0000
commita9bff30776888977f580c9cac212fd1583ee963e (patch)
tree9a3dda70b4ef1d3736bc8dd33b5438af9ac607fd /test/SemaCXX/type-convert-construct.cpp
parentb3a4e432c90be98c6d918087750397e86d030368 (diff)
Warn about the deprecated string literal -> char* conversion. Fixes PR6428.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97404 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/type-convert-construct.cpp')
-rw-r--r--test/SemaCXX/type-convert-construct.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/type-convert-construct.cpp b/test/SemaCXX/type-convert-construct.cpp
index d786a9a8a6..8f92a035dc 100644
--- a/test/SemaCXX/type-convert-construct.cpp
+++ b/test/SemaCXX/type-convert-construct.cpp
@@ -11,7 +11,7 @@ void f() {
int *p;
bool v6 = T(0) == p;
char *str;
- str = "a string";
+ str = "a string"; // expected-warning{{conversion from string literal to 'char *' is deprecated}}
wchar_t *wstr;
- wstr = L"a wide string";
+ wstr = L"a wide string"; // expected-warning{{conversion from string literal to 'wchar_t *' is deprecated}}
}