1 /* $NetBSD: opt_badp.c,v 1.1 2021/10/16 03:20:13 rillig Exp $ */ 2 /* $FreeBSD$ */ 3 4 #indent input 5 static void 6 no_declarations(void) 7 { 8 action(); 9 } 10 11 static void 12 declarations_without_blank_line(void) 13 { 14 int local_variable; 15 action(); /* FIXME: need empty line above */ 16 } 17 18 static void 19 declaration_with_blank_line(void) 20 { 21 int local_variable; 22 23 action(); 24 } 25 26 static void 27 declaration_with_several_blank_lines(void) 28 { 29 int local_variable; 30 31 32 33 action(); 34 } 35 #indent end 36 37 #indent run -badp 38 static void 39 no_declarations(void) 40 { 41 42 action(); 43 } 44 45 static void 46 declarations_without_blank_line(void) 47 { 48 int local_variable; 49 action(); /* FIXME: need empty line above */ 50 } 51 52 static void 53 declaration_with_blank_line(void) 54 { 55 int local_variable; 56 57 action(); 58 } 59 60 static void 61 declaration_with_several_blank_lines(void) 62 { 63 int local_variable; 64 65 66 67 action(); 68 } 69 #indent end 70 71 #indent input 72 static void 73 no_declarations(void) 74 { 75 action(); 76 } 77 78 static void 79 declarations_without_blank_line(void) 80 { 81 int local_variable; 82 action(); 83 } 84 85 static void 86 declaration_with_blank_line(void) 87 { 88 int local_variable; 89 90 action(); 91 } 92 93 static void 94 declaration_with_several_blank_lines(void) 95 { 96 int local_variable; 97 98 99 100 action(); 101 } 102 #indent end 103 104 #indent run -nbadp 105 static void 106 no_declarations(void) 107 { 108 action(); 109 } 110 111 static void 112 declarations_without_blank_line(void) 113 { 114 int local_variable; 115 action(); 116 } 117 118 static void 119 declaration_with_blank_line(void) 120 { 121 int local_variable; 122 123 action(); 124 } 125 126 static void 127 declaration_with_several_blank_lines(void) 128 { 129 int local_variable; 130 131 132 133 action(); 134 } 135 #indent end 136