xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_177.c (revision 9fb66d812c00ebfb445c0b47dea128f32aa6fe96)
1 /*	$NetBSD: msg_177.c,v 1.2 2021/01/24 16:12:45 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 const int var = not_a_constant;			/* expect: 177 */
11 
12 const int calling_function = function();	/* expect: 177 */
13