1 /* $NetBSD: msg_071.c,v 1.7 2023/03/28 14:44:34 rillig Exp $ */ 2 # 3 "msg_071.c" 3 4 // Test for message: too many characters in character constant [71] 5 6 /* lint1-extra-flags: -X 351 */ 7 8 /* 9 * See also: 10 * lex_char.c 11 * lex_char_uchar.c 12 * lex_wide_char.c 13 */ 14 15 /* 16 * C11 6.4.4.4p7 says: Each hexadecimal escape sequence is the longest 17 * sequence of characters that can constitute the escape sequence. 18 */ 19 char valid_multi_digit_hex = '\x0000000000000000000000a'; 20 /* expect+2: error: too many characters in character constant [71] */ 21 /* expect+1: warning: initializer does not fit [178] */ 22 char invalid_multi_digit_hex = '\x000g000000000000000000a'; 23