1 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
2 /* Test the support for char32_t character constants. */
4 /* { dg-options "-std=gnu99 -Wall -Werror" } */
6 typedef __CHAR32_TYPE__ char32_t
;
8 extern void abort (void);
12 char32_t c2
= U
'\u0024';
13 char32_t c3
= U
'\u2029';
14 char32_t c4
= U
'\U00064321';
23 if (sizeof (U
'a') != sizeof (char32_t
))
25 if (sizeof (U
'\0') != sizeof (char32_t
))
27 if (sizeof (U
'\u0024') != sizeof (char32_t
))
29 if (sizeof (U
'\u2029') != sizeof (char32_t
))
31 if (sizeof (U
'\U00064321') != sizeof (char32_t
))