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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [utf-dflt.C] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
/* Contributed by Kris Van Hees  */
2
/* Expected errors for char16_t/char32_t in default std. */
3
/* Ensure u and U prefixes are parsed as separate tokens in default std. */
4
/* { dg-do compile } */
5
/* { dg-options "" } */
6
 
7
const static char16_t   c0      = 'a';  /* { dg-error "not name a type" } */
8
const static char32_t   c1      = 'a';  /* { dg-error "not name a type" } */
9
 
10
const unsigned short    c2      = u'a'; /* { dg-error "not declared" } */
11
        /* { dg-error "expected ',' or ';'" "" { target *-*-* } 10 } */
12
const unsigned long     c3      = U'a'; /* { dg-error "not declared" } */
13
        /* { dg-error "expected ',' or ';'" "" { target *-*-* } 12 } */
14
 
15
#define u       1 +
16
#define U       2 +
17
 
18
const unsigned short    c4      = u'a';
19
const unsigned long     c5      = U'a';
20
 
21
#undef u
22
#undef U
23
#define u       "a"
24
#define U       "b"
25
 
26
const void              *s0     = u"a";
27
const void              *s1     = U"a";
28
 
29
int main () {}

powered by: WebSVN 2.1.0

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