1 /* $NetBSD: c90.c,v 1.4 2024/11/30 11:27:20 rillig Exp $ */ 2 # 3 "c90.c" 3 4 /* 5 * Tests for the option -s, which allows features from C90, but neither any 6 * later C standards nor GNU extensions. 7 */ 8 9 /* lint1-flags: -sw -X 351 */ 10 11 /* expect+1: error: C90 to C17 require formal parameter before '...' [84] */ 12 void varargs_function(...); 13 14 int 15 compound_literal(void) 16 { 17 /* expect+1: error: compound literals are a C99/GCC extension [319] */ 18 return (int){123}; 19 } 20