1 /* $NetBSD: msg_031.c,v 1.8 2022/06/17 18:54:53 rillig Exp $ */ 2 # 3 "msg_031.c" 3 4 // Test for message: '%s' has incomplete type '%s' [31] 5 6 struct complete { 7 int dummy; 8 }; 9 10 /* expect+1: warning: struct 'incomplete' never defined [233] */ 11 struct incomplete; 12 13 14 struct complete complete_var; 15 16 /* expect+1: error: 'incomplete_var' has incomplete type 'incomplete struct incomplete' [31] */ 17 struct incomplete incomplete_var; 18 19 20 /* expect+1: error: '<unnamed>' has incomplete type 'incomplete struct incomplete' [31] */ 21 void function(struct incomplete); 22