]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/utf-type.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / utf-type.c
CommitLineData
c466b2cd
KVH
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
7typedef __CHAR16_TYPE__ char16_t;
8typedef __CHAR32_TYPE__ char32_t;
9
10extern void abort (void);
11
12int main ()
13{
14 if (sizeof (char16_t) != sizeof (u'a'))
15 abort();
16 if (sizeof (char32_t) != sizeof (U'a'))
17 abort();
18}