xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_071.c (revision 82d56013d7b633d116a93943de88e08335357a7c)
1 /*	$NetBSD: msg_071.c,v 1.4 2021/04/05 01:35:34 rillig Exp $	*/
2 # 3 "msg_071.c"
3 
4 // Test for message: too many characters in character constant [71]
5 
6 /*
7  * C11 6.4.4.4p7 says: Each hexadecimal escape sequence is the longest
8  * sequence of characters that can constitute the escape sequence.
9  */
10 char valid_multi_digit_hex = '\x0000000000000000000000a';
11 char invalid_multi_digit_hex = '\x000g000000000000000000a'; /* expect: 71 *//* expect: 178 */
12