xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_349.c (revision d16b7486a53dcb8072b60ec6fcb4373a2d0c27b7)
1 /*	$NetBSD: msg_349.c,v 1.2 2023/03/28 14:44:35 rillig Exp $	*/
2 # 3 "msg_349.c"
3 
4 // Test for message 349: non type argument to alignof is a GCC extension [348]
5 
6 /* lint1-flags: -S -w -X 351 */
7 
8 unsigned long c11_type = _Alignof(int);
9 
10 /* expect+1: warning: non type argument to alignof is a GCC extension [349] */
11 unsigned long c11_expr = _Alignof(3);
12 
13 unsigned long gcc_type = __alignof__(int);
14 
15 /* expect+1: warning: non type argument to alignof is a GCC extension [349] */
16 unsigned long gcc_expr = __alignof__(3);
17