1 /* $NetBSD: msg_074.c,v 1.7 2024/02/02 19:07:58 rillig Exp $ */ 2 # 3 "msg_074.c" 3 4 // Test for message: no hex digits follow \x [74] 5 6 /* lint1-extra-flags: -X 351 */ 7 8 /* expect+1: error: no hex digits follow \x [74] */ 9 char char_invalid_hex = '\x'; 10 /* expect+2: error: no hex digits follow \x [74] */ 11 /* expect+1: warning: multi-character character constant [294] */ 12 char char_invalid_hex_letter = '\xg'; 13 char char_hex1 = '\xf'; 14 char char_hex2 = '\xff'; 15 16 /* expect+1: error: no hex digits follow \x [74] */ 17 int wide_invalid_hex = L'\x'; 18 /* expect+2: error: no hex digits follow \x [74] */ 19 /* expect+1: error: too many characters in character constant [71] */ 20 int wide_invalid_hex_letter = L'\xg'; 21 int wide_hex1 = L'\xf'; 22 int wide_hex2 = L'\xff'; 23 24 /* expect+1: error: no hex digits follow \x [74] */ 25 char char_string_invalid_hex[] = "\x"; 26 /* expect+1: error: no hex digits follow \x [74] */ 27 char char_string_invalid_hex_letter[] = "\xg"; 28 char char_string_hex1[] = "\xf"; 29 char char_string_hex2[] = "\xff"; 30 31 /* expect+1: error: no hex digits follow \x [74] */ 32 int wide_string_invalid_hex[] = L"\x"; 33 /* expect+1: error: no hex digits follow \x [74] */ 34 int wide_string_invalid_hex_letter[] = L"\xg"; 35 int wide_string_hex1[] = L"\xf"; 36 int wide_string_hex2[] = L"\xff"; 37