repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
clang
/
test
/
Sema
/
transparent-union-pointer.c
blob
3f92ace4796c618cf5f3a4ebb7fdf9d8d810ab3b
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
11
void
fastcgi_cleanup
(
void
) {
12
int
status
=
0
;
13
wait
(&
status
);
14
}
15