8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/widechar-2.c
Andreas Jaeger a210651e53 widechar-2.c: New test for wchar_t constant by Ulrich Drepper <drepper@redhat.com>.
* gcc.c-torture/execute/widechar-2.c: New test for wchar_t
	constant by Ulrich Drepper <drepper@redhat.com>.

From-SVN: r36369
2000-09-12 19:40:22 +02:00

12 lines
168 B
C

#include <stddef.h>
const wchar_t ws[] = L"foo";
int
main (void)
{
if (ws[0] != L'f' || ws[1] != L'o' || ws[2] != L'o' || ws[3] != L'\0')
abort();
exit(0);
}