1 /* $NetBSD: opt_ut.c,v 1.2 2021/10/16 21:32:10 rillig Exp $ */ 2 /* $FreeBSD$ */ 3 4 /* 5 * Tests for the options '-ut' and '-nut'. 6 * 7 * The option '-ut' uses tabs for indentation. 8 * 9 * The option '-nut' uses only spaces for indentation. 10 */ 11 12 #indent input 13 int variable; 14 15 void function_declaration(void); 16 17 void 18 function_definition(void) 19 { 20 int local_variable; 21 22 if (arg > 0) 23 function( 24 arg - 1 25 ); 26 } 27 #indent end 28 29 #indent run -ut 30 int variable; 31 32 void function_declaration(void); 33 34 void 35 function_definition(void) 36 { 37 int local_variable; 38 39 if (arg > 0) 40 function( 41 arg - 1 42 ); 43 } 44 #indent end 45 46 #indent run -nut 47 int variable; 48 49 void function_declaration(void); 50 51 void 52 function_definition(void) 53 { 54 int local_variable; 55 56 if (arg > 0) 57 function( 58 arg - 1 59 ); 60 } 61 #indent end 62