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_010.c,v 1.6 2023/03/28 14:44:34 rillig Exp $	*/
# 3 "msg_010.c"

// Test for message: duplicate '%s' [10]

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

/* expect+1: warning: duplicate 'inline' [10] */
inline inline void
double_inline(void)
{
}

/* expect+1: warning: duplicate 'const' [10] */
const const int
double_const(void)
{
	return 0;
}

/* expect+1: warning: duplicate 'volatile' [10] */
volatile volatile int
double_volatile(void)
{
	return 0;
}

int
restrict_pointer(const int *restrict p)
{
	return *p;
}

_Thread_local int thread_local_int;
_Thread_local int *pointer_to_thread_local;

int
thread_local_parameter(_Thread_local int i) /* caught by the compiler */
{
	return i;
}