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