OSDN Git Service

Be sure to initialize the size before use.
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Nov 2000 02:29:31 +0000 (02:29 +0000)
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Nov 2000 02:29:31 +0000 (02:29 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37199 138bc75d-0d04-0410-961f-82ee72b054a4

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

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