Merged r157428 through r157652 into branch.
[official-gcc.git] / gcc / testsuite / gcc.dg / raw-string-5.c
blob3dbf97ded90820b6d09b6c7c48a35b7fb7873ce5
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu99" } */
4 const void *s0 = R"0123456789abcdefg[]0123456789abcdefg";
5 /* { dg-error "raw string delimiter longer" "" { target *-*-* } 4 } */
6 /* { dg-error "stray" "" { target *-*-* } 4 } */
7 const void *s1 = R" [] ";
8 /* { dg-error "invalid character" "" { target *-*-* } 7 } */
9 /* { dg-error "stray" "" { target *-*-* } 7 } */
10 const void *s2 = R" [] ";
11 /* { dg-error "invalid character" "" { target *-*-* } 10 } */
12 /* { dg-error "stray" "" { target *-*-* } 10 } */
13 const void *s3 = R"][]]";
14 /* { dg-error "invalid character" "" { target *-*-* } 13 } */
15 /* { dg-error "stray" "" { target *-*-* } 13 } */
16 const void *s4 = R"@[]@";
17 /* { dg-error "invalid character" "" { target *-*-* } 16 } */
18 /* { dg-error "stray" "" { target *-*-* } 16 } */
19 const void *s5 = R"$[]$";
20 /* { dg-error "invalid character" "" { target *-*-* } 19 } */
21 /* { dg-error "stray" "" { target *-*-* } 19 } */
23 int main () {}