/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ #include #include using namespace std; typedef vector vd; int main() { vector *v1 = new vector[3]; delete[] v1; vd *v3 = new vd[3]; delete[] v3; vector *v5 = new vd[3]; delete[] v5; vd *v7 = new vector[3]; delete[] v7; vector *v2 = new vector; delete v2; vd *v4 = new vd; delete v4; vector *v6 = new vd; delete v6; vd *v8 = new vector; delete v8; printf("success\n"); return 0; }