1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/test/Regression/C++Frontend/2003-05-23-TransparentUnion.c
2003-05-23 15:07:31 +00:00

21 lines
270 B
C

#include <stdio.h>
typedef union {
float *__fptr;
int *__iptr;
} UNION __attribute__ ((__transparent_union__));
int try(UNION U) {
return 1;
}
int test() {
int I;
float F;
return try(&I) | try(&F);
}
int main() {
if (test()) printf("ok");
return 0;
}