summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/d_bltinoffsetof.c
blob: 3b4b4df9e575ee411a1155bb167777cc814e6afa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*	$NetBSD: d_bltinoffsetof.c,v 1.2 2021/01/31 14:39:31 rillig Exp $	*/
# 3 "d_bltinoffsetof.c"

struct foo {
	int a;
	char *b;
};


int
main(void)
{
	return __builtin_offsetof(struct foo, b);
}