diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp1y/pr64626-2.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp1y/pr64626-2.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp1y/pr64626-2.C b/gcc/testsuite/g++.dg/cpp1y/pr64626-2.C new file mode 100644 index 0000000000..62c3546718 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/pr64626-2.C @@ -0,0 +1,11 @@ +// PR c++/64626 +// { dg-do compile { target c++14 } } + +0''; // { dg-error "empty character constant" } + +123'''; // { dg-error "empty character constant" } + +// { dg-error "expected unqualified-id" "expected unqualified-id" { target *-*-* } 4 } + +// { dg-error "missing terminating" "missing terminating" { target *-*-* } 6 } +// { dg-error "expected unqualified-id" "expected unqualified-id" { target *-*-* } 6 } |