summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_182.c
blob: 924c1cd952eae33255f651d792ed8f307b7f3d7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*	$NetBSD: msg_182.c,v 1.4 2022/06/22 19:23:18 rillig Exp $	*/
# 3 "msg_182.c"

// Test for message: incompatible pointer types to '%s' and '%s' [182]

void *
return_discarding_volatile(volatile void *arg)
{
	/* expect+1: warning: incompatible pointer types to 'void' and 'volatile void' [182] */
	return arg;
}

void
init_discarding_volatile(volatile void *arg)
{
	/* expect+1: warning: incompatible pointer types to 'void' and 'volatile void' [182] */
	void *array[] = { arg };
}