mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-24 20:30:06 +00:00
New testcase that was killing the CFE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6277 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8b6be36bca
commit
afb0e71e22
11
test/C++Frontend/2003-05-21-UnionTest.c
Normal file
11
test/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…
Reference in New Issue
Block a user