2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-04-25 09:10:30 +08:00

* 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
gcc/testsuite
ChangeLog
gcc.c-torture/compile

@ -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.
@ -25,7 +29,7 @@ Thu Dec 13 10:35:33 2001 Nicola Pero <n.pero@mi.flashnet.it>
* objc/execute/bf-21.m: New test.
* objc/execute/enumeration-1.m: New test.
* objc/execute/enumeration-2.m: New test.
2001-12-12 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/gnu89-init-1.c: New test.

@ -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);
}