msg_292.c revision 1.5
1/*	$NetBSD: msg_292.c,v 1.5 2023/03/28 14:44:35 rillig Exp $	*/
2# 3 "msg_292.c"
3
4// Test for message: cannot concatenate wide and regular string literals [292]
5
6/* lint1-extra-flags: -X 351 */
7
8const char c_c_c_w_w_w[] =
9	"c2"
10	"c  4"
11	"c      8"
12	/* expect+1: error: cannot concatenate wide and regular string literals [292] */
13	L"w2"
14	/* expect+1: error: cannot concatenate wide and regular string literals [292] */
15	L"w  4"
16	/* expect+1: error: cannot concatenate wide and regular string literals [292] */
17	L"w      8";
18/* The 15 results from 2 + 4 + 8 + '\0'. */
19/* expect+1: error: negative array dimension (-15) [20] */
20typedef int reveal_sizeof_c_c_c_w_w_w[-(int)sizeof(c_c_c_w_w_w)];
21
22const char c_w_c_w_c_w[] =
23	"c2"
24	/* expect+1: error: cannot concatenate wide and regular string literals [292] */
25	L"w2"
26	"c  4"
27	/* expect+1: error: cannot concatenate wide and regular string literals [292] */
28	L"w  4"
29	"c      8"
30	/* expect+1: error: cannot concatenate wide and regular string literals [292] */
31	L"w      8";
32/* expect+1: error: negative array dimension (-15) [20] */
33typedef int reveal_sizeof_c_w_c_w_c_w[-(int)sizeof(c_w_c_w_c_w)];
34