* new2.C: Initialize newed after entering main.
authorMartin v. Löwis <loewis@gcc.gnu.org>
Tue, 23 Mar 1999 00:53:39 +0000 (00:53 +0000)
committerMartin v. Löwis <loewis@gcc.gnu.org>
Tue, 23 Mar 1999 00:53:39 +0000 (00:53 +0000)
From-SVN: r25916

gcc/testsuite/g++.old-deja/g++.eh/new2.C

index 17bea5e13b2592930618a7a4185e563e9ed746b6..ddc8ba82e58f9fb7fb22b8aa16aefa79435d442b 100644 (file)
@@ -19,6 +19,7 @@ int newed, created;
 
 int main ()
 {
+  newed = 0; // The libraries might call new before main starts.
   try {
     foo (new B (A ()));
   } catch (...) { }