summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_074.c
blob: dc09f8907396cc6ca4a0a35cf95d4c891ec42b22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*	$NetBSD: msg_074.c,v 1.6 2023/03/28 14:44:34 rillig Exp $	*/
# 3 "msg_074.c"

// Test for message: no hex digits follow \x [74]

/* lint1-extra-flags: -X 351 */

/* expect+1: error: no hex digits follow \x [74] */
char invalid_hex = '\x';

/* expect+2: error: no hex digits follow \x [74] */
/* expect+1: warning: multi-character character constant [294] */
char invalid_hex_letter = '\xg';

char valid_hex = '\xff';
char valid_single_digit_hex = '\xa';