Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

/*	$NetBSD: msg_147.c,v 1.5 2023/03/28 14:44:34 rillig Exp $	*/
# 3 "msg_147.c"

// Test for message: invalid cast from '%s' to '%s' [147]

/* lint1-extra-flags: -X 351 */

// The type name 'int(int)' is a 'function(int) returning int'.
void take(int(int));

/* ARGSUSED */
void
call_take(int (*ptr)(int))
{
	/* expect+1: error: invalid cast from 'pointer to function(int) returning int' to 'function(int) returning int' [147] */
	take((int(int))ptr);
}