Home | History | Annotate | Line # | Download | only in lint1
      1 /*	$NetBSD: msg_074.c,v 1.8 2024/02/03 19:18:36 rillig Exp $	*/
      2 # 3 "msg_074.c"
      3 
      4 // Test for message: no hex digits follow \x [74]
      5 //
      6 // See also:
      7 //	msg_075.c		overflow in hex escape
      8 
      9 /* lint1-extra-flags: -X 351 */
     10 
     11 /* expect+1: error: no hex digits follow \x [74] */
     12 char char_invalid_hex = '\x';
     13 /* expect+2: error: no hex digits follow \x [74] */
     14 /* expect+1: warning: multi-character character constant [294] */
     15 char char_invalid_hex_letter = '\xg';
     16 
     17 /* expect+1: error: no hex digits follow \x [74] */
     18 int wide_invalid_hex = L'\x';
     19 /* expect+2: error: no hex digits follow \x [74] */
     20 /* expect+1: error: too many characters in character constant [71] */
     21 int wide_invalid_hex_letter = L'\xg';
     22 
     23 /* expect+1: error: no hex digits follow \x [74] */
     24 char char_string_invalid_hex[] = "\x";
     25 /* expect+1: error: no hex digits follow \x [74] */
     26 char char_string_invalid_hex_letter[] = "\xg";
     27 
     28 /* expect+1: error: no hex digits follow \x [74] */
     29 int wide_string_invalid_hex[] = L"\x";
     30 /* expect+1: error: no hex digits follow \x [74] */
     31 int wide_string_invalid_hex_letter[] = L"\xg";
     32