struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-wchar_t-1.c
blobae55105b94ae453f873f36ad923c771ae214ce5d
1 /*
2 wchar_t-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #include <wchar.h>
9 /* { dg-options "-finput-charset=utf-8" } */
11 wchar_t x[] = L"Ä";
12 wchar_t y = L'Ä';
14 void
15 testTortureExecute (void)
17 if (sizeof (x) / sizeof (wchar_t) != 2)
18 ASSERT (0);
19 if (x[0] != L'Ä' || x[1] != L'\0')
20 ASSERT (0);
21 if (y != L'Ä')
22 ASSERT (0);
23 return;