mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
New testcase that was killing the CFE
llvm-svn: 6277
This commit is contained in:
parent
609f9dea47
commit
da20909c1a
11
test/Regression/C++Frontend/2003-05-21-UnionTest.c
Normal file
11
test/Regression/C++Frontend/2003-05-21-UnionTest.c
Normal file
@ -0,0 +1,11 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int __signbit (double __x) {
|
||||
union { double __d; int __i[3]; } __u = { __d: __x };
|
||||
return __u.__i[1] < 0;
|
||||
}
|
||||
|
||||
int main() {
|
||||
printf("%d %d\n", __signbit(-1), __signbit(2.0));
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user