[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2003-05-21-UnionTest.c
Chris Lattner
lattner at cs.uiuc.edu
Wed May 21 18:02:00 PDT 2003
Changes in directory llvm/test/Regression/C++Frontend:
2003-05-21-UnionTest.c added (r1.1)
---
Log message:
New testcase that was killing the CFE
---
Diffs of the changes:
Index: llvm/test/Regression/C++Frontend/2003-05-21-UnionTest.c
diff -c /dev/null llvm/test/Regression/C++Frontend/2003-05-21-UnionTest.c:1.1
*** /dev/null Wed May 21 18:01:45 2003
--- llvm/test/Regression/C++Frontend/2003-05-21-UnionTest.c Wed May 21 18:01:35 2003
***************
*** 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;
+ }
More information about the llvm-commits
mailing list