summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/d_cvt_constant.c
blob: ddff673c54a581f6650d309881fd8731cd6182f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*	$NetBSD: d_cvt_constant.c,v 1.6 2022/01/15 14:22:03 rillig Exp $	*/
# 3 "d_cvt_constant.c"

/* the second assignment assumes failed before */
int
main(void)
{
	/* expect+1: warning: 'x' set but not used in function 'main' [191] */
	double x = 1;
	int foo = 0;
	if (foo)
		x = 1;
}