annotate gcc/testsuite/c-c++-common/raw-string-5.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // { dg-do compile }
kono
parents:
diff changeset
2 // { dg-options "-std=gnu99" { target c } }
kono
parents:
diff changeset
3 // { dg-options "-std=c++0x" { target c++ } }
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 const void *s0 = R"0123456789abcdefg()0123456789abcdefg";
kono
parents:
diff changeset
6 // { dg-error "raw string delimiter longer" "longer" { target *-*-* } .-1 }
kono
parents:
diff changeset
7 // { dg-error "stray" "stray" { target *-*-* } .-2 }
kono
parents:
diff changeset
8 const void *s1 = R" () ";
kono
parents:
diff changeset
9 // { dg-error "invalid character" "invalid" { target *-*-* } .-1 }
kono
parents:
diff changeset
10 // { dg-error "stray" "stray" { target *-*-* } .-2 }
kono
parents:
diff changeset
11 const void *s2 = R" () ";
kono
parents:
diff changeset
12 // { dg-error "invalid character" "invalid" { target *-*-* } .-1 }
kono
parents:
diff changeset
13 // { dg-error "stray" "stray" { target *-*-* } .-2 }
kono
parents:
diff changeset
14 const void *s3 = R")())";
kono
parents:
diff changeset
15 // { dg-error "invalid character" "invalid" { target *-*-* } .-1 }
kono
parents:
diff changeset
16 // { dg-error "stray" "stray" { target *-*-* } .-2 }
kono
parents:
diff changeset
17 const void *s4 = R"@()@";
kono
parents:
diff changeset
18 // { dg-error "invalid character" "invalid" { target *-*-* } .-1 }
kono
parents:
diff changeset
19 // { dg-error "stray" "stray" { target *-*-* } .-2 }
kono
parents:
diff changeset
20 const void *s5 = R"$()$";
kono
parents:
diff changeset
21 // { dg-error "invalid character" "invalid" { target *-*-* } .-1 }
kono
parents:
diff changeset
22 // { dg-error "stray" "stray" { target *-*-* } .-2 }
kono
parents:
diff changeset
23 const void *s6 = R"\u0040()\u0040";
kono
parents:
diff changeset
24 // { dg-error "invalid character" "invalid" { target *-*-* } .-1 }
kono
parents:
diff changeset
25 // { dg-error "stray" "stray" { target *-*-* } .-2 }
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 int main () {}