diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-21 23:01:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-21 23:01:35 +0000 |
commit | afb0e71e22369e06866b409704350eeece9075e2 (patch) | |
tree | 6b200a02e71f9111eaa3382632ab9df8110ad59d | |
parent | 8b6be36bcafb9e8a573df3c84a96453ed759f2d1 (diff) |
New testcase that was killing the CFE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6277 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/C++Frontend/2003-05-21-UnionTest.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-05-21-UnionTest.c b/test/C++Frontend/2003-05-21-UnionTest.c new file mode 100644 index 0000000000..626ba09d76 --- /dev/null +++ b/test/C++Frontend/2003-05-21-UnionTest.c @@ -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; +} |