Ignore:
Timestamp:
Dec 18, 2008, 5:11:21 PM (12 years ago)
Author:
Peter
Message:

refs #466: moved destructor to be (pure) virtual and public.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/interpolation_test.cc

    r1656 r1661  
    3333#include <cmath>
    3434
     35using namespace theplu::yat;
     36void test_delete(test::Suite&);
     37
    3538int main(int argc, char* argv[])
    3639{
    37   using namespace theplu::yat;
    3840  using namespace theplu::yat::regression;
    3941
    4042  test::Suite suite(argc, argv);
     43  test_delete(suite);
    4144
    4245  /*
     
    105108  return suite.return_value();
    106109}
     110
     111void test_delete(test::Suite& suite)
     112{
     113  utility::Vector x(10);
     114  for (size_t i=0; i<x.size(); ++i)
     115    x(i)=i;
     116  regression::GSLInterpolation* ip = new regression::CSplineInterpolation(x,x);
     117  delete ip;
     118}
     119
Note: See TracChangeset for help on using the changeset viewer.