Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkImageDataItemTest.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "mitkImage.h"
18 #include "mitkImageDataItem.h"
19 
20 #include <fstream>
21 int mitkImageDataItemTest(int /*argc*/, char * /*argv*/ [])
22 {
23  auto pixels = new unsigned long[100];
24  void *data = pixels;
25 
26  std::cout << "Testing pseudo-type independent deleting: ";
27  delete[](unsigned char *) data;
28  std::cout << "[PASSED]" << std::endl;
29 
30  std::cout << "[TEST DONE]" << std::endl;
31  return EXIT_SUCCESS;
32 }
int mitkImageDataItemTest(int, char *[])