xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_074.c (revision 2dd295436a0082eb4f8d294f4aa73c223413d0f2)
1 /*	$NetBSD: msg_074.c,v 1.6 2023/03/28 14:44:34 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 invalid_hex = '\x';
10 
11 /* expect+2: error: no hex digits follow \x [74] */
12 /* expect+1: warning: multi-character character constant [294] */
13 char invalid_hex_letter = '\xg';
14 
15 char valid_hex = '\xff';
16 char valid_single_digit_hex = '\xa';
17