1 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
2 /* Test the support for char32_t character constants. */
4 /* { dg-xfail-run-if "PR36470" { "avr-*-*" "m32c-*-*" } { "*" } { "" } } */
5 /* { dg-options "-std=gnu99 -Wall -Werror" } */
7 typedef __CHAR32_TYPE__ char32_t
;
9 extern void abort (void);
13 char32_t c2
= U
'\u0024';
14 char32_t c3
= U
'\u2029';
15 char32_t c4
= U
'\U00064321';
24 if (sizeof (U
'a') != sizeof (char32_t
))
26 if (sizeof (U
'\0') != sizeof (char32_t
))
28 if (sizeof (U
'\u0024') != sizeof (char32_t
))
30 if (sizeof (U
'\u2029') != sizeof (char32_t
))
32 if (sizeof (U
'\U00064321') != sizeof (char32_t
))