summaryrefslogtreecommitdiff
path: root/lib/ccan/cast/test/compile_ok-cast_void.c
blob: c649d283b3b12530ed58713ea3c63974c79d28f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <ccan/cast/cast.h>

static void *remove_void(const void *p)
{
	return cast_const(void *, p);
}

int main(void)
{
	void *p = remove_void("foo");
	return !p;
}