xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_075.c (revision d16b7486a53dcb8072b60ec6fcb4373a2d0c27b7)
1 /*	$NetBSD: msg_075.c,v 1.6 2023/03/28 14:44:34 rillig Exp $	*/
2 # 3 "msg_075.c"
3 
4 // Test for message: overflow in hex escape [75]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 /*
9  * See also:
10  *	lex_char.c
11  *	lex_char_uchar.c
12  *	lex_string.c
13  *	lex_wide_char.c
14  *	lex_wide_string.c
15  */
16 
17 /* expect+1: warning: overflow in hex escape [75] */
18 char str[] = "\x12345678123456781234567812345678";
19 
20 /* C11 6.4.4.4p7 */
21 char leading_zeroes = '\x0000000000000000000000000000020';
22