OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [utf-badconcat.C] - Blame information for rev 301

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
/* Contributed by Kris Van Hees  */
2
/* Test unsupported concatenation of char16_t/char32_t* string literals. */
3
/* { dg-do compile } */
4
/* { dg-options "-std=c++0x" } */
5
 
6
const void *s0  = u"a"  "b";
7
const void *s1  =  "a" u"b";
8
const void *s2  = u"a" U"b";    /* { dg-error "non-standard concatenation" } */
9
const void *s3  = U"a" u"b";    /* { dg-error "non-standard concatenation" } */
10
const void *s4  = u"a" L"b";    /* { dg-error "non-standard concatenation" } */
11
const void *s5  = L"a" u"b";    /* { dg-error "non-standard concatenation" } */
12
const void *s6  = u"a" u"b";
13
const void *s7  = U"a"  "b";
14
const void *s8  =  "a" U"b";
15
const void *s9  = U"a" L"b";    /* { dg-error "non-standard concatenation" } */
16
const void *sa  = L"a" U"b";    /* { dg-error "non-standard concatenation" } */
17
const void *sb  = U"a" U"b";
18
const void *sc  = L"a"  "b";
19
const void *sd  =  "a" L"b";
20
const void *se  = L"a" L"b";
21
 
22
int main () {}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.