1 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
2 /* Test the support for char32_t character constants. */
4 /* { dg-options "-std=c++0x -Wall -Werror" } */
6 extern "C" void abort (void);
8 const static char32_t c0 = U'a';
9 const static char32_t c1 = U'\0';
10 const static char32_t c2 = U'\u0024';
11 const static char32_t c3 = U'\u2029';
12 const static char32_t c4 = U'\U00064321';
21 if (sizeof (U'a') != sizeof (char32_t))
23 if (sizeof (U'\0') != sizeof (char32_t))
25 if (sizeof (U'\u0024') != sizeof (char32_t))
27 if (sizeof (U'\u2029') != sizeof (char32_t))
29 if (sizeof (U'\U00064321') != sizeof (char32_t))