]> Creatis software - gdcm.git/blob - Testing/TestBug.cxx
7126585c3b024fdd77285cc4a8c6369664c280fb
[gdcm.git] / Testing / TestBug.cxx
1 // The following crashes on Win32
2 #include "gdcm.h"
3 #include "gdcmConfigure.h"
4
5 int bug1(int argc, char* argv[])
6 {  
7         gdcmHeader* e1;
8         
9         if (argc > 1)
10                 e1 = new gdcmHeader(argv[1]);
11         else
12     {
13     std::string filename = GDCM_DATA_ROOT;
14     filename += "/test.acr";
15                 e1 = new gdcmHeader( filename.c_str() );
16     }
17         e1->PrintPubDict();
18
19   return 0;
20 }
21
22
23