1 // If c++98, the {,u,u8,U,L}R prefix should be parsed as separate
4 // { dg-options "-std=c++98" }
6 const void *s0 = R"[a]"; // { dg-error "was not declared" }
7 // { dg-error "expected ',' or ';'" "" { target *-*-* } 6 }
8 const void *s1 = uR"[a]"; // { dg-error "was not declared" }
9 // { dg-error "expected ',' or ';'" "" { target *-*-* } 8 }
10 const void *s2 = UR"[a]"; // { dg-error "was not declared" }
11 // { dg-error "expected ',' or ';'" "" { target *-*-* } 10 }
12 const void *s3 = u8R"[a]"; // { dg-error "was not declared" }
13 // { dg-error "expected ',' or ';'" "" { target *-*-* } 12 }
14 const void *s4 = LR"[a]"; // { dg-error "was not declared" }
15 // { dg-error "expected ',' or ';'" "" { target *-*-* } 14 }
17 const int i0 = R'a'; // { dg-error "was not declared" }
18 // { dg-error "expected ',' or ';'" "" { target *-*-* } 17 }
19 const int i1 = uR'a'; // { dg-error "was not declared" }
20 // { dg-error "expected ',' or ';'" "" { target *-*-* } 19 }
21 const int i2 = UR'a'; // { dg-error "was not declared" }
22 // { dg-error "expected ',' or ';'" "" { target *-*-* } 21 }
23 const int i3 = u8R'a'; // { dg-error "was not declared" }
24 // { dg-error "expected ',' or ';'" "" { target *-*-* } 23 }
25 const int i4 = LR'a'; // { dg-error "was not declared" }
26 // { dg-error "expected ',' or ';'" "" { target *-*-* } 25 }
34 const void *s5 = R"[a]";
35 const void *s6 = uR"[a]";
36 const void *s7 = UR"[a]";
37 const void *s8 = u8R"[a]";
38 const void *s9 = LR"[a]";
55 const int i8 = u8R'a';