]> Creatis software - gdcm.git/commitdiff
ENH: Adding the long long/ __int64 mess
authormalaterre <malaterre>
Sun, 29 May 2005 23:06:41 +0000 (23:06 +0000)
committermalaterre <malaterre>
Sun, 29 May 2005 23:06:41 +0000 (23:06 +0000)
CMake/gdcmTestCompareTypes.cxx [new file with mode: 0644]
CMake/gdcmTestConvertTypes.cxx [new file with mode: 0644]
CMake/gdcmTestFUNCTION.cxx

diff --git a/CMake/gdcmTestCompareTypes.cxx b/CMake/gdcmTestCompareTypes.cxx
new file mode 100644 (file)
index 0000000..bad59da
--- /dev/null
@@ -0,0 +1,31 @@
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: gdcmTestCompareTypes.cxx,v $
+  Language:  C++
+  Date:      $Date: 2005/05/29 23:06:41 $
+  Version:   $Revision: 1.1 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
+
+#define TYPE_LONG_LONG long long
+
+typedef GDCM_TEST_COMPARE_TYPE_1 Type1;
+typedef GDCM_TEST_COMPARE_TYPE_2 Type2;
+
+void function(Type1**) {}
+
+int main()
+{
+  Type2** p = 0;
+  function(p);
+  return 0;
+}
diff --git a/CMake/gdcmTestConvertTypes.cxx b/CMake/gdcmTestConvertTypes.cxx
new file mode 100644 (file)
index 0000000..18413ff
--- /dev/null
@@ -0,0 +1,35 @@
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: gdcmTestConvertTypes.cxx,v $
+  Language:  C++
+  Date:      $Date: 2005/05/29 23:06:41 $
+  Version:   $Revision: 1.1 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
+
+#define TYPE_UNSIGNED___INT64 unsigned __int64
+
+typedef GDCM_TEST_CONVERT_TYPE_TO TypeTo;
+typedef GDCM_TEST_CONVERT_TYPE_FROM TypeFrom;
+
+void function(TypeTo& l, TypeFrom const& r)
+{
+  l = static_cast<TypeTo>(r);
+}
+
+int main()
+{
+  TypeTo tTo = TypeTo();
+  TypeFrom tFrom = TypeFrom();
+  function(tTo, tFrom);
+  return 0;
+}
index db316f4e0e152301fe49fef65de4fa5fbfe8a85a..9e1b2e0a2482303e49777dc49c52fe0a0e20e223 100644 (file)
@@ -1,3 +1,21 @@
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: gdcmTestFUNCTION.cxx,v $
+  Language:  C++
+  Date:      $Date: 2005/05/29 23:06:41 $
+  Version:   $Revision: 1.2 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
+
 // Minimal test for existence of __FUNCTION__ pseudo-macro
 #include <string.h>