summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/string-literal.c
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-11-28 07:29:00 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-11-28 07:29:00 +0000
commit9a67f47882901e4cd3ab16935a7ca9a59a2e3c97 (patch)
treea70842e39d33812b9288e61fe3f3782bf0e7cf27 /clang/test/CodeGen/string-literal.c
parent1c33fe8feae103191a3cd75e371d80032ad5f607 (diff)
downloadbcm5719-llvm-9a67f47882901e4cd3ab16935a7ca9a59a2e3c97.tar.gz
bcm5719-llvm-9a67f47882901e4cd3ab16935a7ca9a59a2e3c97.zip
Teach Lexer::getSpelling about raw string literals. Specifically, if a raw
string literal needs cleaning (because it contains line-splicing in the encoding prefix or in the ud-suffix), do not clean the section between the double-quotes -- that's the "raw" bit! llvm-svn: 168776
Diffstat (limited to 'clang/test/CodeGen/string-literal.c')
-rw-r--r--clang/test/CodeGen/string-literal.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/string-literal.c b/clang/test/CodeGen/string-literal.c
index 12d431a4543..962b19d3dd0 100644
--- a/clang/test/CodeGen/string-literal.c
+++ b/clang/test/CodeGen/string-literal.c
@@ -76,5 +76,12 @@ def)";
const char *q = R"(abc
def)" "ghi";
+ // CHECK-CPP0X: private unnamed_addr constant [13 x i8] c"abc\5C\0A??=\0Adef\00", align 1
+ const char *r = R\
+"(abc\
+??=
+def)";
+
+
#endif
}
OpenPOWER on IntegriCloud