cleanup1.C (C::C()): Initialize member c.

* g++.dg/opt/cleanup1.C (C::C()): Initialize member c.
	Clarify comment.

From-SVN: r52588
This commit is contained in:
Hans-Peter Nilsson 2002-04-21 20:32:48 +00:00 committed by Hans-Peter Nilsson
parent 562a5c27c2
commit 5b3dc8155f
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-04-21 Hans-Peter Nilsson <hp@axis.com>
* g++.dg/opt/cleanup1.C (C::C()): Initialize member c.
Clarify comment.
2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
* gcc.dg/cpp/endif.h, gcc.dg/cpp/endif.c: New tests.

View File

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