xref: /netbsd-src/tests/usr.bin/xlint/lint1/lex_comment.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: lex_comment.c,v 1.1 2021/06/19 20:25:58 rillig Exp $	*/
2 # 3 "lex_comment.c"
3 
4 /*
5  * Before lex.c 1.41 from 2021-06-19, lint ran into an endless loop when it
6  * saw an unclosed comment at the end of the translation unit.  In practice
7  * this was not relevant since the translation unit always comes from the C
8  * preprocessor, which always emits a well-formed token sequence.
9  */
10 
11 /* expect+3: error: unterminated comment [256] */
12 /* expect+2: warning: empty translation unit [272] */
13 /* unclosed comment
14