lex_utf8.c revision 1.1
11.1Srillig/* $NetBSD: lex_utf8.c,v 1.1 2024/02/02 23:30:39 rillig Exp $ */ 21.1Srillig# 3 "lex_utf8.c" 31.1Srillig 41.1Srillig/* 51.1Srillig * Test lexing of multibyte characters and strings in an UTF-8 locale. 61.1Srillig */ 71.1Srillig 81.1Srillig/* 91.1Srillig * Since lint always runs in the default "C" locale, it does not support any 101.1Srillig * multibyte character encoding, thus treating each byte as a separate 111.1Srillig * character. If lint were to support UTF-8, the array dimension would be 3 121.1Srillig * instead of 7. 131.1Srillig */ 141.1Srillig/* expect+1: error: negative array dimension (-7) [20] */ 151.1Srilligtypedef int mblen[-(int)(sizeof(L"Ä") / sizeof(L""))]; 16