1 /* $NetBSD: msg_076.c,v 1.8 2024/02/03 10:01:59 rillig Exp $ */ 2 # 3 "msg_076.c" 3 4 // Test for message: character escape does not fit in character [76] 5 // 6 // See also: 7 // msg_075.c for hex escapes 8 9 /* lint1-extra-flags: -X 351 */ 10 11 char char_255 = '\377'; 12 /* expect+1: warning: character escape does not fit in character [76] */ 13 char char_256 = '\400'; 14 /* expect+1: warning: character escape does not fit in character [76] */ 15 char char_511 = '\777'; 16 /* expect+2: warning: multi-character character constant [294] */ 17 /* expect+1: warning: initializer does not fit [178] */ 18 char char_512 = '\1000'; 19 20 int wide_255 = L'\377'; 21 int wide_256 = L'\400'; 22 int wide_511 = L'\777'; 23 /* expect+1: error: too many characters in character constant [71] */ 24 int wide_512 = L'\1000'; 25 26 char char_string_255[] = "\377"; 27 /* expect+1: warning: character escape does not fit in character [76] */ 28 char char_string_256[] = "\400"; 29 /* expect+1: warning: character escape does not fit in character [76] */ 30 char char_string_511[] = "\777"; 31 char char_string_512[] = "\1000"; 32 33 int wide_string_255[] = L"\377"; 34 int wide_string_256[] = L"\400"; 35 int wide_string_511[] = L"\777"; 36 int wide_string_512[] = L"\1000"; 37