Home | History | Annotate | Line # | Download | only in indent
opt_ut.c revision 1.1
      1 /* $NetBSD: opt_ut.c,v 1.1 2021/10/16 03:20:13 rillig Exp $ */
      2 /* $FreeBSD$ */
      3 
      4 #indent input
      5 int variable;
      6 
      7 void function_declaration(void);
      8 
      9 void
     10 function_definition(void)
     11 {
     12 	int local_variable;
     13 }
     14 #indent end
     15 
     16 #indent run -ut
     17 int		variable;
     18 
     19 void		function_declaration(void);
     20 
     21 void
     22 function_definition(void)
     23 {
     24 	int		local_variable;
     25 }
     26 #indent end
     27 
     28 #indent input
     29 int var;
     30 
     31 void
     32 function(int arg)
     33 {
     34 	if (arg > 0)
     35 		function(
     36 			arg - 1
     37 			);
     38 }
     39 #indent end
     40 
     41 #indent run -nut
     42 int             var;
     43 
     44 void
     45 function(int arg)
     46 {
     47         if (arg > 0)
     48                 function(
     49                          arg - 1
     50                         );
     51 }
     52 #indent end
     53