forked from qt-creator/qt-creator
C++: Add basic tests for raw string literals
Change-Id: I9ca253a6a2296912eafe139ce53f4f9779097248 Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
11
tests/auto/cplusplus/cxx11/data/rawstringliterals.cpp
Normal file
11
tests/auto/cplusplus/cxx11/data/rawstringliterals.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
class String;
|
||||
void f()
|
||||
{
|
||||
String r1 = R"(raw text)";
|
||||
String r2 = R"(
|
||||
raw text line1
|
||||
raw text line2
|
||||
)";
|
||||
String other;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user