1 /* $NetBSD: msg_301.c,v 1.3 2022/06/17 06:59:16 rillig Exp $ */ 2 # 3 "msg_301.c" 3 4 // Test for message: array of incomplete type [301] 5 // This message is not used. 6 // TODO: This message occurs in the code but is deactivated. 7 8 /* expect+1: warning: struct 'incomplete' never defined [233] */ 9 struct incomplete; 10 11 /* expect+1: error: 'var' has incomplete type 'incomplete struct incomplete' [31] */ 12 struct incomplete var[3]; 13 14 /* expect+1: error: cannot take size/alignment of incomplete type [143] */ 15 unsigned long sizeof_3 = sizeof(struct incomplete[3]); 16