aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Sema/transparent-union-pointer.c
blob: 3f92ace4796c618cf5f3a4ebb7fdf9d8d810ab3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 %s -fsyntax-only -verify
// expected-no-diagnostics

typedef union   {
  union wait *__uptr;
  int *__iptr;
} __WAIT_STATUS __attribute__ ((__transparent_union__));

extern int wait (__WAIT_STATUS __stat_loc);

void fastcgi_cleanup(void) {
  int status = 0;
  wait(&status);
}