msg_340.c revision 1.2
1/* $NetBSD: msg_340.c,v 1.2 2021/07/05 19:53:43 rillig Exp $ */ 2# 3 "msg_340.c" 3 4// Test for message: initialization with '[a...b]' is a GCC extension [340] 5 6/* 7 * In strict C mode, GCC extensions are flagged as such. 8 */ 9 10/* lint1-flags: -Ssw */ 11 12int 13example(void) 14{ 15 int numbers[] = { 16 [2 ... 3] = 12 /* expect: 340 */ 17 }; 18 return numbers[0]; 19} 20