projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fehler83
[libfirm]
/
ir
/
be
/
test
/
llvm
/
2003-05-23-TransparentUnion.c
1
#include <stdio.h>
2
3
typedef union {
4
float *__fptr;
5
int *__iptr;
6
} UNION __attribute__ ((__transparent_union__));
7
8
int try(UNION U) {
9
return 1;
10
}
11
int test() {
12
int I;
13
float F;
14
return try(&I) | try(&F);
15
}
16
17
int main() {
18
if (test()) printf("ok");
19
return 0;
20
}