Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/ext/utf-badconcat2.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// Test unsupported concatenation of UTF-8 string literals. // { dg-do compile { target c++11 } } const void *s0 = u8"a" "b"; const void *s1 = "a" u8"b"; const void *s2 = u8"a" u8"b"; const void *s3 = u8"a" u"b"; // { dg-error "non-standard concatenation" } const void *s4 = u"a" u8"b"; // { dg-error "non-standard concatenation" } const void *s5 = u8"a" U"b"; // { dg-error "non-standard concatenation" } const void *s6 = U"a" u8"b"; // { dg-error "non-standard concatenation" } const void *s7 = u8"a" L"b"; // { dg-error "non-standard concatenation" } const void *s8 = L"a" u8"b"; // { dg-error "non-standard concatenation" } int main () {}