Home | History | Annotate | Line # | Download | only in indent
      1 /* $NetBSD: opt_i.c,v 1.4 2022/04/24 09:04:12 rillig Exp $ */
      2 
      3 /*
      4  * Tests for the option '-i', which specifies the indentation for a single
      5  * brace level.
      6  */
      7 
      8 //indent input
      9 void
     10 example(void)
     11 {
     12    if (1 > 0) if (2 > 1) return yes; return no;
     13 }
     14 //indent end
     15 
     16 //indent run -i3
     17 void
     18 example(void)
     19 {
     20    if (1 > 0)
     21       if (2 > 1)
     22 	 return yes;
     23    return no;
     24 }
     25 //indent end
     26