* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / utf-type.c
blob1aa6020cbef254e4225f2ee797c81bc90dc4a695
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" } */
7 typedef __CHAR16_TYPE__ char16_t;
8 typedef __CHAR32_TYPE__ char32_t;
10 extern void abort (void);
12 int main ()
14 if (sizeof (char16_t) != sizeof (u'a'))
15 abort();
16 if (sizeof (char32_t) != sizeof (U'a'))
17 abort();