1 /* $NetBSD: opt_pcs.c,v 1.3 2021/10/16 21:32:10 rillig Exp $ */ 2 /* $FreeBSD$ */ 3 4 /* 5 * Tests for the options '-pcs' and '-npcs'. 6 * 7 * The option '-pcs' adds a space in a function call expression, between the 8 * function name and the opening parenthesis. 9 * 10 * The option '-npcs' removes any whitespace from a function call expression, 11 * between the function name and the opening parenthesis. 12 */ 13 14 #indent input 15 void 16 example(void) 17 { 18 function_call(); 19 function_call (1); 20 function_call (1,2,3); 21 } 22 #indent end 23 24 #indent run -pcs 25 void 26 example(void) 27 { 28 function_call (); 29 function_call (1); 30 function_call (1, 2, 3); 31 } 32 #indent end 33 34 #indent run -npcs 35 void 36 example(void) 37 { 38 function_call(); 39 function_call(1); 40 function_call(1, 2, 3); 41 } 42 #indent end 43