1 /* $NetBSD: msg_349.c,v 1.3 2024/03/01 17:22:55 rillig Exp $ */ 2 # 3 "msg_349.c" 3 4 // Test for message: non type argument to alignof is a GCC extension [349] 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