OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [utf-type.c] - Rev 404

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

/* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
/* Ensure that __CHAR16_TYPE__ and __CHAR32_TYPE__ exist, and are of the
   correct width. */
/* { dg-do run } */
/* { dg-options "-std=gnu99 -Wall -Werror" } */
 
typedef __CHAR16_TYPE__ char16_t;
typedef __CHAR32_TYPE__ char32_t;
 
extern void abort (void);
 
int main ()
{
    if (sizeof (char16_t) != sizeof (u'a'))
	abort();
    if (sizeof (char32_t) != sizeof (U'a'))
	abort();
}
 

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

powered by: WebSVN 2.1.0

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