]> Creatis software - gdcm.git/blob - CMake/gdcmTestIstringStream.cxx
ENH: Cleanup the test
[gdcm.git] / CMake / gdcmTestIstringStream.cxx
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmTestIstringStream.cxx,v $
5   Language:  C++
6   Date:      $Date: 2005/11/04 16:36:43 $
7   Version:   $Revision: 1.2 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18
19 #include <stdint.h>
20 #include <sstream>
21
22 int main()
23 {
24   std::istringstream os;
25   int vm;
26   std::string s = "5";
27   os.str(s);
28
29   os >> vm;
30
31   return vm;
32 }
33