xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_074.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_074.c,v 1.5 2022/06/15 20:18:31 rillig Exp $	*/
2 # 3 "msg_074.c"
3 
4 // Test for message: no hex digits follow \x [74]
5 
6 /* expect+1: error: no hex digits follow \x [74] */
7 char invalid_hex = '\x';
8 
9 /* expect+2: error: no hex digits follow \x [74] */
10 /* expect+1: warning: multi-character character constant [294] */
11 char invalid_hex_letter = '\xg';
12 
13 char valid_hex = '\xff';
14 char valid_single_digit_hex = '\xa';
15