1 /*========================================================================= 2 3 Program: Visualization Toolkit 4 Module: vtkTestCompareTypes.cxx 5 6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 7 All rights reserved. 8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 9 10 This software is distributed WITHOUT ANY WARRANTY; without even 11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 12 PURPOSE. See the above copyright notice for more information. 13 14 =========================================================================*/ 15 16 #ifdef HAVE_SYS_TYPES_H 17 # include <sys/types.h> 18 #endif /* HAVE_SYS_TYPES_H */ 19 20 #ifdef HAVE_STDINT_H 21 # include <stdint.h> 22 #endif /* HAVE_STDINT_H */ 23 24 #ifdef HAVE_STDDEF_H 25 # include <stddef.h> 26 #endif /* HAVE_STDDEF_H */ 27 28 #define TYPE_LONG_LONG long long 29 30 typedef VTK_TEST_COMPARE_TYPE_1 Type1; 31 typedef VTK_TEST_COMPARE_TYPE_2 Type2; 32 function(Type1 **)33void function(Type1**) {} 34 main()35int main() 36 { 37 Type2** p = 0; 38 function(p); 39 return 0; 40 } 41