xref: /netbsd-src/tests/usr.bin/xlint/lint1/d_bltinoffsetof.c (revision 82d56013d7b633d116a93943de88e08335357a7c)
1 /*	$NetBSD: d_bltinoffsetof.c,v 1.2 2021/01/31 14:39:31 rillig Exp $	*/
2 # 3 "d_bltinoffsetof.c"
3 
4 struct foo {
5 	int a;
6 	char *b;
7 };
8 
9 
10 int
11 main(void)
12 {
13 	return __builtin_offsetof(struct foo, b);
14 }
15