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

// Test for message: '%s' has incomplete type '%s' [31]

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

struct complete {
	int dummy;
};

/* expect+1: warning: struct 'incomplete' never defined [233] */
struct incomplete;


struct complete complete_var;

/* expect+1: error: 'incomplete_var' has incomplete type 'incomplete struct incomplete' [31] */
struct incomplete incomplete_var;


/* expect+1: error: '<unnamed>' has incomplete type 'incomplete struct incomplete' [31] */
void function(struct incomplete);