diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/991026-1.c | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0535965..1927165 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 0000000..1917421 --- /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); +} |