1 /* $NetBSD: msg_177.c,v 1.3 2022/06/16 16:58:36 rillig Exp $ */ 2 # 3 "msg_177.c" 3 4 // Test for message: non-constant initializer [177] 5 6 extern int function(void); 7 8 static const int not_a_constant = 13; 9 10 /* expect+1: error: non-constant initializer [177] */ 11 const int var = not_a_constant; 12 13 /* expect+1: error: non-constant initializer [177] */ 14 const int calling_function = function(); 15