transparent-union-pointer.c revision 1eb4433ac451dc16f4133a88af2d002ac26c58ef
1// RUN: clang-cc %s -fsyntax-only -verify
2
3typedef union   {
4  union wait *__uptr;
5  int *__iptr;
6} __WAIT_STATUS __attribute__ ((__transparent_union__));
7
8extern int wait (__WAIT_STATUS __stat_loc);
9
10void fastcgi_cleanup() {
11  int status = 0;
12  wait(&status);
13}
14
15