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/] [gcc.dg/] [utf-dflt.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
2
/* If not gnu99, the u and U prefixes should be parsed as separate tokens. */
3
/* { dg-do compile } */
4
/* { dg-options "" } */
5
 
6
const unsigned short    c0      = u'a';         /* { dg-error "undeclared" } */
7
                /* { dg-error "expected ',' or ';'" "" { target *-*-* } 6 } */
8
const unsigned long     c1      = U'a';         /* { dg-error "undeclared" } */
9
                /* { dg-error "expected ',' or ';'" "" { target *-*-* } 8 } */
10
 
11
#define u       1 +
12
#define U       2 +
13
 
14
const unsigned short    c2      = u'a';
15
const unsigned long     c3      = U'a';
16
 
17
#undef u
18
#undef U
19
#define u       "a"
20
#define U       "b"
21
 
22
const void              *s0     = u"a";
23
const void              *s1     = U"a";
24
 
25
int main () {}

powered by: WebSVN 2.1.0

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