freebsd-src/contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_anon_union.c
Enji Cooper cdebaff820 Upgrade NetBSD tests to 01.11.2017_23.20 snapshot
This contains some new testcases in /usr/tests/...:

- .../lib/libc
- .../lib/libthr
- .../lib/msun
- .../sys/kern

Tested on:	amd64, i386
MFC after:	1 month
2017-01-13 03:33:57 +00:00

17 lines
173 B
C

/* struct with only anonymous members */
struct foo {
union {
long loo;
double doo;
};
};
int
main(void) {
struct foo *f = 0;
printf("%p\n", &f[1]);
return 0;
}