Merge from trunk @ 138209
[official-gcc.git] / gcc / testsuite / g++.dg / ext / utf-type.C
blob41a83ff2ef0ddc29517b880419ece19934eefe6b
1 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
2 /* Ensure that __CHAR16_TYPE__ and __CHAR32_TYPE__ exist, match the types they
3    are the underlying data type for. */
4 /* { dg-do run } */
5 /* { dg-options "-std=c++0x -Wall -Werror" } */
7 extern "C" void abort (void);
9 int main ()
11     if (sizeof (__CHAR16_TYPE__) != sizeof (char16_t))
12         abort();
13     if (sizeof (__CHAR32_TYPE__) != sizeof (char32_t))
14         abort();