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

// Test for message: overflow in hex escape [75]

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

/*
 * See also:
 *	lex_char.c
 *	lex_char_uchar.c
 *	lex_string.c
 *	lex_wide_char.c
 *	lex_wide_string.c
 */

/* expect+1: warning: overflow in hex escape [75] */
char str[] = "\x12345678123456781234567812345678";

/* C11 6.4.4.4p7 */
char leading_zeroes = '\x0000000000000000000000000000020';