summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/string-literal.c
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-10-22 15:35:21 +0000
committerCraig Topper <craig.topper@gmail.com>2015-10-22 15:35:21 +0000
commita6324c94638f4c2cb47b386f4153d63b591bc5f2 (patch)
tree4277c2cd65de8dcea75b553e2ebeb53848885845 /clang/test/CodeGen/string-literal.c
parente015f66a73ac8063b41663d339b9b8841351d564 (diff)
downloadbcm5719-llvm-a6324c94638f4c2cb47b386f4153d63b591bc5f2.tar.gz
bcm5719-llvm-a6324c94638f4c2cb47b386f4153d63b591bc5f2.zip
Disable trigraph and escaped newline expansion on all types of raw string literals not just ASCII type.
llvm-svn: 251025
Diffstat (limited to 'clang/test/CodeGen/string-literal.c')
-rw-r--r--clang/test/CodeGen/string-literal.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/clang/test/CodeGen/string-literal.c b/clang/test/CodeGen/string-literal.c
index 8bc97f1887e..c4601874362 100644
--- a/clang/test/CodeGen/string-literal.c
+++ b/clang/test/CodeGen/string-literal.c
@@ -102,6 +102,30 @@ def)" "ghi";
??=
def)";
+ // CHECK-CXX11: private unnamed_addr constant [13 x i8] c"def\5C\0A??=\0Aabc\00", align 1
+ const char *s = u8R\
+"(def\
+??=
+abc)";
+
+ // CHECK-CXX11: private unnamed_addr constant [13 x i16] [i16 97, i16 98, i16 99, i16 92, i16 10, i16 63, i16 63, i16 61, i16 10, i16 100, i16 101, i16 102, i16 0], align 2
+ const char16_t *t = uR\
+"(abc\
+??=
+def)";
+
+ // CHECK-CXX11: private unnamed_addr constant [13 x i32] [i32 97, i32 98, i32 99, i32 92, i32 10, i32 63, i32 63, i32 61, i32 10, i32 100, i32 101, i32 102, i32 0], align 4
+ const char32_t *u = UR\
+"(abc\
+??=
+def)";
+
+ // CHECK-CXX11: private unnamed_addr constant [13 x i32] [i32 100, i32 101, i32 102, i32 92, i32 10, i32 63, i32 63, i32 61, i32 10, i32 97, i32 98, i32 99, i32 0], align 4
+ const wchar_t *v = LR\
+"(def\
+??=
+abc)";
+
#endif
#endif
}
OpenPOWER on IntegriCloud