aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/pascal-strings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/pascal-strings.cpp')
-rw-r--r--test/SemaCXX/pascal-strings.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/SemaCXX/pascal-strings.cpp b/test/SemaCXX/pascal-strings.cpp
index 89194b54aa..f4c692db58 100644
--- a/test/SemaCXX/pascal-strings.cpp
+++ b/test/SemaCXX/pascal-strings.cpp
@@ -4,3 +4,5 @@ const wchar_t *pascalString = L"\pThis is a Pascal string";
unsigned char a[3] = "\pa";
unsigned char b[3] = "\pab";
unsigned char c[3] = "\pabc"; // expected-error {{initializer-string for char array is too long}}
+unsigned char d[3] = ("\pab");
+unsigned char e[3] = ("\pabc"); // expected-error {{initializer-string for char array is too long}}