diff --git a/tests/usr.bin/xlint/lint1/d_bltinoffsetof.c b/tests/usr.bin/xlint/lint1/d_bltinoffsetof.c new file mode 100644 index 000000000000..106b970789bb --- /dev/null +++ b/tests/usr.bin/xlint/lint1/d_bltinoffsetof.c @@ -0,0 +1,12 @@ + +struct foo { + int a; + char *b; +}; + + +int +main(void) +{ + return __builtin_offsetof(struct foo, b); +}