From 543c94cc93c326c0892fb36f248f7d8b11dc2f83 Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Tue, 26 Oct 1999 06:47:05 +0000 Subject: [PATCH] * gcc.c-torture/compile/991026-1.c: New test. From-SVN: r30184 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.c-torture/compile/991026-1.c | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/991026-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 05359653fac..1927165d76f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +Tue Oct 26 00:45:56 1999 Jeffrey A Law (law@cygnus.com) + + * gcc.c-torture/compile/991026-1.c: New test. + Sat Oct 23 23:36:03 1999 Jeffrey A Law (law@cygnus.com) * gcc.c-torture/execute/991023-1.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/compile/991026-1.c b/gcc/testsuite/gcc.c-torture/compile/991026-1.c new file mode 100644 index 00000000000..191742112bd --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/991026-1.c @@ -0,0 +1,13 @@ +void something_f(float); + +int foo(void) +{ + union + { + float f; + double d; + } u, *pu = &u; + + u.f = 1.0; + something_f(u.f); +}