From 5b3dc8155fc48541c3e6ee918438cd51c012a48d Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Sun, 21 Apr 2002 20:32:48 +0000 Subject: [PATCH] cleanup1.C (C::C()): Initialize member c. * g++.dg/opt/cleanup1.C (C::C()): Initialize member c. Clarify comment. From-SVN: r52588 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/opt/cleanup1.C | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8c5385f8668..99ab61171f7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-04-21 Hans-Peter Nilsson + + * g++.dg/opt/cleanup1.C (C::C()): Initialize member c. + Clarify comment. + 2002-04-21 Neil Booth * gcc.dg/cpp/endif.h, gcc.dg/cpp/endif.c: New tests. diff --git a/gcc/testsuite/g++.dg/opt/cleanup1.C b/gcc/testsuite/g++.dg/opt/cleanup1.C index f34c7cf1a2d..e7c00dc2073 100644 --- a/gcc/testsuite/g++.dg/opt/cleanup1.C +++ b/gcc/testsuite/g++.dg/opt/cleanup1.C @@ -1,6 +1,7 @@ // PR middle-end/6247 // This testcase was miscompiled on IA-32 because a single stack slot // was used for 2 different variables at the same time. +// The function H::h1 was miscompiled. // { dg-do run } // { dg-options "-O2" } @@ -130,7 +131,7 @@ C C::c1 (const char *x, int y) return z; } -C::C () +C::C () : c (__null) { }