xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_020.c (revision 3117ece4fc4a4ca4489ba793710b60b0d26bab6c)
1 /*	$NetBSD: msg_020.c,v 1.4 2023/03/28 14:44:34 rillig Exp $	*/
2 # 3 "msg_020.c"
3 
4 // Test for message: negative array dimension (%d) [20]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 /* expect+1: error: negative array dimension (-3) [20] */
9 int array[-3];
10