Commit fb835c4d by Martin v. Löwis

* new2.C: Initialize newed after entering main.

From-SVN: r25916
parent d579fbc0
...@@ -19,6 +19,7 @@ int newed, created; ...@@ -19,6 +19,7 @@ int newed, created;
int main () int main ()
{ {
newed = 0; // The libraries might call new before main starts.
try { try {
foo (new B (A ())); foo (new B (A ()));
} catch (...) { } } catch (...) { }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment