2 // { dg-options "-std=gnu99" { target c } }
3 // { dg-options "-std=c++0x" { target c++ } }
5 const void *s0
= R
"0123456789abcdefg()0123456789abcdefg" 0;
6 // { dg-error "raw string delimiter longer" "longer" { target *-*-* } .-1 }
7 // { dg-error "stray" "stray" { target *-*-* } .-2 }
8 const void *s1
= R
" () " 0;
9 // { dg-error "invalid character" "invalid" { target *-*-* } .-1 }
10 // { dg-error "stray" "stray" { target *-*-* } .-2 }
11 const void *s2
= R
" () " 0;
12 // { dg-error "invalid character" "invalid" { target *-*-* } .-1 }
13 // { dg-error "stray" "stray" { target *-*-* } .-2 }
14 const void *s3
= R
")())" 0;
15 // { dg-error "invalid character" "invalid" { target *-*-* } .-1 }
16 // { dg-error "stray" "stray" { target *-*-* } .-2 }
17 const void *s4
= R
"@()@" 0;
18 // { dg-error "invalid character" "invalid" { target *-*-* } .-1 }
19 // { dg-error "stray" "stray" { target *-*-* } .-2 }
20 const void *s5
= R
"$()$" 0;
21 // { dg-error "invalid character" "invalid" { target *-*-* } .-1 }
22 // { dg-error "stray" "stray" { target *-*-* } .-2 }
23 const void *s6
= R
"\u0040()\u0040" 0;
24 // { dg-error "invalid character" "invalid" { target *-*-* } .-1 }
25 // { dg-error "stray" "stray" { target *-*-* } .-2 }