aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/raw-string-14.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/c-c++-common/raw-string-14.c')
-rw-r--r--gcc/testsuite/c-c++-common/raw-string-14.c39
1 files changed, 18 insertions, 21 deletions
diff --git a/gcc/testsuite/c-c++-common/raw-string-14.c b/gcc/testsuite/c-c++-common/raw-string-14.c
index b2e395c..fba826c 100644
--- a/gcc/testsuite/c-c++-common/raw-string-14.c
+++ b/gcc/testsuite/c-c++-common/raw-string-14.c
@@ -4,36 +4,33 @@
// { dg-options "-std=c++11" { target c++ } }
const void *s0 = R"abc\
-def()abcdef";
- // { dg-error "invalid character" "invalid" { target *-*-* } 6 }
- // { dg-error "stray" "stray" { target *-*-* } 6 }
+def()abcdef" 0;
+ // { dg-error "invalid character" "invalid" { target *-*-* } .-2 }
+ // { dg-error "stray" "stray" { target *-*-* } .-3 }
const void *s1 = R"??/
-()??/";
- // { dg-error "invalid new-line" "invalid" { target *-*-* } 10 }
- // { dg-error "stray" "stray" { target *-*-* } 10 }
- // { dg-warning "missing terminating" "missing" { target *-*-* } 10 }
- // { dg-error "19:missing terminating" "missing" { target *-*-* } 10 }
-const void *s2 = R"abcdefghijklmn??/(a)abcdefghijklmn???";
+()??/" 0;
+ // { dg-error "invalid new-line" "invalid" { target *-*-* } .-2 }
+ // { dg-error "stray" "stray" { target *-*-* } .-3 }
+const void *s2 = R"abcdefghijklmn??/(a)abcdefghijklmn???" 0;
// { dg-error "raw string delimiter longer" "longer" { target *-*-* } .-1 }
// { dg-error "stray" "stray" { target *-*-* } .-2 }
- // { dg-error "expected" "expected" { target *-*-* } .-3 }
-const void *s3 = R"abcdefghijklmno??/(a)abcdefghijklmno???";
+const void *s3 = R"abcdefghijklmno??/(a)abcdefghijklmno???" 0;
// { dg-error "raw string delimiter longer" "longer" { target *-*-* } .-1 }
// { dg-error "stray" "stray" { target *-*-* } .-2 }
-const void *s4 = R"abcdefghijklmnop??=(a)abcdefghijklmnop??=";
+const void *s4 = R"abcdefghijklmnop??=(a)abcdefghijklmnop??=" 0;
// { dg-error "raw string delimiter longer" "longer" { target *-*-* } .-1 }
// { dg-error "stray" "stray" { target *-*-* } .-2 }
const void *s5 = R"abc\
-()abcdef";
- // { dg-error "invalid character" "invalid" { target *-*-* } 26 }
- // { dg-error "stray" "stray" { target *-*-* } 26 }
+()abcdef" 0;
+ // { dg-error "invalid character" "invalid" { target *-*-* } .-2 }
+ // { dg-error "stray" "stray" { target *-*-* } .-3 }
const void *s6 = R"\
-()";
- // { dg-error "invalid character" "invalid" { target *-*-* } 30 }
- // { dg-error "stray" "stray" { target *-*-* } 30 }
+()" 0;
+ // { dg-error "invalid character" "invalid" { target *-*-* } .-2 }
+ // { dg-error "stray" "stray" { target *-*-* } .-3 }
const void *s7 = R"\
-a()a";
- // { dg-error "invalid character" "invalid" { target *-*-* } 34 }
- // { dg-error "stray" "stray" { target *-*-* } 34 }
+a()a" 0;
+ // { dg-error "invalid character" "invalid" { target *-*-* } .-2 }
+ // { dg-error "stray" "stray" { target *-*-* } .-3 }
int main () {}