Home | History | Annotate | Line # | Download | only in indent
      1 /* $NetBSD: lsym_form_feed.c,v 1.8 2023/05/21 10:18:44 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)', even though it does not occur in practice.
     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