Be sure to initialize the size before use.
authorMike Stump <mrs@gcc.gnu.org>
Thu, 2 Nov 2000 02:29:31 +0000 (02:29 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Thu, 2 Nov 2000 02:29:31 +0000 (02:29 +0000)
From-SVN: r37199

gcc/testsuite/g++.old-deja/g++.other/new3.C

index fa32cdde6cbd757df2479c36da7ba5a4ae43171e..8839a6b8ee5f7520677eeb685c92a40cf8ba4096 100644 (file)
@@ -6,6 +6,7 @@ struct A
   int size;
   A ()
     {
+      size = 20;
       T *p;
       p = new T[size];
       int foo;