xref: /Universal-ctags/Units/parser-cxx.r/cxx11-raw-strings.d/input.cpp (revision 8295c52c7a01d8db7b6020c5d43831d53313383c)
1 
2 static const char* str1 = R"blah(
3 lots
4 of text
5 )blah";
6 
7 struct typ1 { int memb1; };
8 
9 static const char* str2 = R"blah(
10 lots
11 of text including a quote"
12 )blah";
13 
14 struct typ2 { int memb2; };
15 
16 /* check we don't get confused by string concatenation */
17 #define FOUR "four"
18 
19 static const char* str3 = FOUR"f(iv)e";
20 
21 struct typ3 { int memb3; };
22 
23 /* check for prefixes */
24 static const char* str4 = LR"blah(";int bug4;)blah";
25 struct typ4 { int memb4; };
26 
27 static const char* str5 = u8R"blah(";int bug5;)blah";
28 struct typ5 { int memb5; };
29 
30 static const char* str6 = uR"blah(";int bug6;)blah";
31 struct typ6 { int memb6; };
32 
33 static const char* str7 = UR"blah(";int bug7;)blah";
34 struct typ7 { int memb7; };
35