blob: 3724844cb2c8201f5c887aedd289761529167a73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* $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);
|