1 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
2 /* Test the support for char16_t character constants. */
4 /* { dg-options "-std=gnu99 -Wall -Werror" } */
6 typedef __CHAR16_TYPE__ char16_t
;
8 extern void abort (void);
12 char16_t c2
= u
'\u0024';
13 char16_t c3
= u
'\u2029';
14 char16_t c4
= u
'\u8010';
18 char16_t c7
= U
'\u2029';
19 char16_t c8
= U
'\u8010';
21 char16_t ca
= L
'\u2029';
22 char16_t cb
= L
'\u8010';
31 if (sizeof (u
'a') != sizeof (char16_t
))
33 if (sizeof (u
'\0') != sizeof (char16_t
))
35 if (sizeof (u
'\u0024') != sizeof (char16_t
))
37 if (sizeof (u
'\u2029') != sizeof (char16_t
))
39 if (sizeof (u
'\u8010') != sizeof (char16_t
))