* gcc.c-torture/compile/20011217-2.c: New test.

From-SVN: r48097
This commit is contained in:
Andreas Jaeger 2001-12-17 09:24:30 +01:00 committed by Andreas Jaeger
parent e536cfdf17
commit 232fd111f9
2 changed files with 24 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-12-17 Andreas Jaeger <aj@suse.de>
* gcc.c-torture/compile/20011217-2.c: New test.
2001-12-17 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.c-torture/compile/20011217-1.c: New test.

View File

@ -0,0 +1,19 @@
/* Test that the initializer of a compound literal is properly walked
when tree inlining. */
/* Origin: glibc (as reported in PR c/5105) from <aj@suse.de>. */
inline int
finite (double __x)
{
return (__extension__
(((((union { double __d; int __i[2]; }) {__d: __x}).__i[1]
| 0x800fffffu) + 1) >> 31));
}
int
main (void)
{
double x = 1.0;
return finite (x);
}