xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_177.c (revision 82d56013d7b633d116a93943de88e08335357a7c)
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