summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/lex_comment.c
blob: 850342468fdb936366de8bae1539e65ddbf00916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*	$NetBSD: lex_comment.c,v 1.1 2021/06/19 20:25:58 rillig Exp $	*/
# 3 "lex_comment.c"

/*
 * Before lex.c 1.41 from 2021-06-19, lint ran into an endless loop when it
 * saw an unclosed comment at the end of the translation unit.  In practice
 * this was not relevant since the translation unit always comes from the C
 * preprocessor, which always emits a well-formed token sequence.
 */

/* expect+3: error: unterminated comment [256] */
/* expect+2: warning: empty translation unit [272] */
/* unclosed comment