xref: /aosp_15_r20/external/clang/test/Sema/transparent-union-pointer.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 %s -fsyntax-only -verify
2 // expected-no-diagnostics
3 
4 typedef union   {
5   union wait *__uptr;
6   int *__iptr;
7 } __WAIT_STATUS __attribute__ ((__transparent_union__));
8 
9 extern int wait (__WAIT_STATUS __stat_loc);
10 
fastcgi_cleanup()11 void fastcgi_cleanup() {
12   int status = 0;
13   wait(&status);
14 }
15 
16