summaryrefslogtreecommitdiff
path: root/test/CodeGen
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
commit30cddaec99fa6c3207613efdaedbb51dd8d70c77 (patch)
tree8dfd8b004454cf98e66f2a77f5738d8d906755cb /test/CodeGen
parentacf796b4797c5b3e9e237148fa622afdc04b3eff (diff)
downloadclang-30cddaec99fa6c3207613efdaedbb51dd8d70c77.tar.gz
clang-30cddaec99fa6c3207613efdaedbb51dd8d70c77.tar.bz2
clang-30cddaec99fa6c3207613efdaedbb51dd8d70c77.tar.xz
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! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/string-literal.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/string-literal.c b/test/CodeGen/string-literal.c
index 12d431a454..962b19d3dd 100644
--- a/test/CodeGen/string-literal.c
+++ b/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
}