xref: /netbsd-src/tests/usr.bin/xlint/lint1/lex_whitespace.c (revision 5a4b550cb78858a91adcae3b6cfabd4ec509ce78)
1 /*	$NetBSD: lex_whitespace.c,v 1.1 2021/09/10 19:40:18 rillig Exp $	*/
2 # 3 "lex_whitespace.c"
3 
4 /*
5  * Test tracking of the current position in the translation unit, with
6  * spaces, tabs, vertical tabs and form feeds.
7  *
8  * Both vertical tab and form feed do not increment the line number.
9  * Lint agrees with GCC and Clang here.
10  */
11 
12 /* expect+1: warning: typedef declares no type name [72] */
13 typedef;
14 
15 	/* horizontal tab */
16 /* expect+1: warning: typedef declares no type name [72] */
17 typedef;
18 
19 /* vertical tab */
20 /* expect+1: warning: typedef declares no type name [72] */
21 typedef;
22 
23 /* form feed */
24 /* expect+1: warning: typedef declares no type name [72] */
25 typedef;
26