aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/type-convert-construct.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-09-12 00:47:35 +0000
committerDouglas Gregor <dgregor@apple.com>2008-09-12 00:47:35 +0000
commit77a52233f7c0f162672652051bfe78b65ad4f789 (patch)
tree9b5f558999006b98a47daebc70a2ddad72d05e86 /test/SemaCXX/type-convert-construct.cpp
parent5e155f0c9bd5916d47a7d99dd8d5b26bdb44d835 (diff)
Give string literals const element typesin C++, and cope with the deprecated C++ conversion from a string literal to a pointer-to-non-const-character
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56137 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, 4 insertions, 0 deletions
diff --git a/test/SemaCXX/type-convert-construct.cpp b/test/SemaCXX/type-convert-construct.cpp
index 64115f97ca..64191a29d9 100644
--- a/test/SemaCXX/type-convert-construct.cpp
+++ b/test/SemaCXX/type-convert-construct.cpp
@@ -10,4 +10,8 @@ void f() {
typedef int T;
int *p;
bool v6 = T(0) == p;
+ char *str;
+ str = "a string";
+ wchar_t *wstr;
+ wstr = L"a wide string";
}