Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

/*	$NetBSD: msg_071.c,v 1.7 2023/03/28 14:44:34 rillig Exp $	*/
# 3 "msg_071.c"

// Test for message: too many characters in character constant [71]

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

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

/*
 * C11 6.4.4.4p7 says: Each hexadecimal escape sequence is the longest
 * sequence of characters that can constitute the escape sequence.
 */
char valid_multi_digit_hex = '\x0000000000000000000000a';
/* expect+2: error: too many characters in character constant [71] */
/* expect+1: warning: initializer does not fit [178] */
char invalid_multi_digit_hex = '\x000g000000000000000000a';