diff options
author | John Criswell <criswell@uiuc.edu> | 2003-09-26 14:58:39 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2003-09-26 14:58:39 +0000 |
commit | 91d66aa243c7075e05c06c9382b505c3293769e4 (patch) | |
tree | ced6efff9c2d0012708d96a2a69bd62798c3a2d7 /test/C++Frontend/2003-05-21-UnionBitfields.c | |
parent | 67181ca7f67cd2959ee5d1d583d8b7e179f44d96 (diff) |
Removing these tests from the regressions directory.
They now live in llvm/test/Programs/SingleSource/Regression alongside their
UnitTest brethren.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/C++Frontend/2003-05-21-UnionBitfields.c')
-rw-r--r-- | test/C++Frontend/2003-05-21-UnionBitfields.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/test/C++Frontend/2003-05-21-UnionBitfields.c b/test/C++Frontend/2003-05-21-UnionBitfields.c deleted file mode 100644 index d4da0d683c..0000000000 --- a/test/C++Frontend/2003-05-21-UnionBitfields.c +++ /dev/null @@ -1,22 +0,0 @@ -#include <stdio.h> -#include <math.h> - -int target_isinf(double x) { - union { - double d; - struct { - unsigned mantissa2; - unsigned mantissa1 : 20; - unsigned exponent : 11; - unsigned sign : 1; - } big_endian; - } u; - - u.d = x; - return (u.big_endian.exponent == 2047 && u.big_endian.mantissa1 == 0 && u.big_endian.mantissa2 == 0); -} - -int main() { - printf("%d %d\n", target_isinf(1234.42), target_isinf(1.0/1.0e-1000)); - return 0; -} |