Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/utf-type.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */ | |
2 /* Ensure that __CHAR16_TYPE__ and __CHAR32_TYPE__ exist, and are of the | |
3 correct width. */ | |
4 /* { dg-do run } */ | |
5 /* { dg-options "-std=gnu99 -Wall -Werror" } */ | |
6 | |
7 typedef __CHAR16_TYPE__ char16_t; | |
8 typedef __CHAR32_TYPE__ char32_t; | |
9 | |
10 extern void abort (void); | |
11 | |
12 int main () | |
13 { | |
14 if (sizeof (char16_t) != sizeof (u'a')) | |
15 abort(); | |
16 if (sizeof (char32_t) != sizeof (U'a')) | |
17 abort(); | |
18 } |