Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/cpp/utf8-5byte-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 1830386684a0 |
rev | line source |
---|---|
111 | 1 /* Test for bug in conversions from 5-byte UTF-8 sequences in |
2 cpplib. */ | |
3 /* { dg-do run { target { 4byte_wchar_t } } } */ | |
4 /* { dg-options "-std=gnu99" } */ | |
5 | |
6 extern void abort (void); | |
7 extern void exit (int); | |
8 | |
9 __WCHAR_TYPE__ ws[] = L"û¿¿¿¿"; | |
10 | |
11 int | |
12 main (void) | |
13 { | |
14 if (ws[0] != L'\U03FFFFFF' || ws[1] != 0) | |
15 abort (); | |
16 exit (0); | |
17 } |