lsym_form_feed.c revision 1.7 1 /* $NetBSD: lsym_form_feed.c,v 1.7 2023/05/16 11:32:02 rillig Exp $ */
2
3 /*
4 * Tests for the token lsym_form_feed, which represents a form feed, a special
5 * kind of whitespace that is seldom used. If it is used, it usually appears
6 * on a line of its own, after an external-declaration, to force a page break
7 * when printing the source code on actual paper.
8 */
9
10 //indent input
11 void function_1(void);
12
13 void function_2(void);
15 //indent end
16
17 //indent run-equals-input -di0
18
19
20 /*
21 * Test form feed after 'if (expr)', which is handled in search_stmt.
22 */
23 //indent input
24 void function(void)
25 {
26 if (expr)
27 /* <-- form feed */
29 {
30 }
31 }
32 //indent end
33
34 //indent run
35 void
36 function(void)
37 {
38 if (expr)
39 /* <-- form feed */
41 {
42 }
43 }
44 //indent end
45