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_349.c,v 1.2 2023/03/28 14:44:35 rillig Exp $	*/
# 3 "msg_349.c"

// Test for message 349: non type argument to alignof is a GCC extension [348]

/* lint1-flags: -S -w -X 351 */

unsigned long c11_type = _Alignof(int);

/* expect+1: warning: non type argument to alignof is a GCC extension [349] */
unsigned long c11_expr = _Alignof(3);

unsigned long gcc_type = __alignof__(int);

/* expect+1: warning: non type argument to alignof is a GCC extension [349] */
unsigned long gcc_expr = __alignof__(3);