2
0

transparent-union-pointer.c 293 B

123456789101112131415
  1. // RUN: %clang_cc1 %s -fsyntax-only -verify
  2. // expected-no-diagnostics
  3. typedef union {
  4. union wait *__uptr;
  5. int *__iptr;
  6. } __WAIT_STATUS __attribute__ ((__transparent_union__));
  7. extern int wait (__WAIT_STATUS __stat_loc);
  8. void fastcgi_cleanup() {
  9. int status = 0;
  10. wait(&status);
  11. }