summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_224.c
blob: e5912e92732d026ff67a7dbd118664fb509203c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*	$NetBSD: msg_224.c,v 1.5 2023/07/07 19:45:22 rillig Exp $	*/
# 3 "msg_224.c"

// Test for message: cannot recover from previous errors [224]

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

/* expect+1: error: syntax error 'error' [249] */
void example1(void) { "syntax" error; }
/* expect+1: error: syntax error 'error' [249] */
void example2(void) { "syntax" error; }
/* expect+1: error: syntax error 'error' [249] */
void example3(void) { "syntax" error; }
/* expect+1: error: syntax error 'error' [249] */
void example4(void) { "syntax" error; }
/* expect+2: error: syntax error 'error' [249] */
/* expect+1: error: cannot recover from previous errors [224] */
void example5(void) { "syntax" error; }
void example6(void) { "syntax" error; }