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

Subversion Repositories openrisc

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

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 __CHAR16_TYPE__ and __CHAR32_TYPE__ exist, match the types they
3
   are the underlying data type for. */
4
/* { dg-do run } */
5
/* { dg-options "-std=c++0x -Wall -Werror" } */
6
 
7
extern "C" void abort (void);
8
 
9
int main ()
10
{
11
    if (sizeof (__CHAR16_TYPE__) != sizeof (char16_t))
12
        abort();
13
    if (sizeof (__CHAR32_TYPE__) != sizeof (char32_t))
14
        abort();
15
}

powered by: WebSVN 2.1.0

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