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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [utf-typespec.C] - Blame information for rev 715

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* Contributed by Kris Van Hees  */
2
/* Ensure that type specifiers are not allowed for char16_t/char32_t. */
3
/* { dg-do compile } */
4
/* { dg-options "-std=c++0x" } */
5
 
6
signed char16_t         c0;             /* { dg-error "signed" } */
7
signed char32_t         c1;             /* { dg-error "signed" } */
8
unsigned char16_t       c2;             /* { dg-error "unsigned" } */
9
unsigned char32_t       c3;             /* { dg-error "unsigned" } */
10
 
11
short char16_t          c4;             /* { dg-error "short" } */
12
long char16_t           c5;             /* { dg-error "long" } */
13
short char32_t          c6;             /* { dg-error "short" } */
14
long char32_t           c7;             /* { dg-error "long" } */
15
 
16
signed short char16_t   c8;             /* { dg-error "signed" } */
17
signed short char32_t   c9;             /* { dg-error "signed" } */
18
signed long char16_t    ca;             /* { dg-error "signed" } */
19
signed long char32_t    cb;             /* { dg-error "signed" } */
20
unsigned short char16_t cc;             /* { dg-error "unsigned" } */
21
unsigned short char32_t cd;             /* { dg-error "unsigned" } */
22
unsigned long char16_t  ce;             /* { dg-error "unsigned" } */
23
unsigned long char32_t  cf;             /* { dg-error "unsigned" } */
24
 
25
int main () {}

powered by: WebSVN 2.1.0

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