From bf9a8a39c8447d2e4a38b4381c9b7d6bfb534bb2 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Mon, 13 Nov 2000 16:26:56 -0500 Subject: [svn-r2887] Purpose: Backward compatibility additions Description: Test HDF5 v1.2 compatibility API functions (H5Tget_member_dims & H5Tinsert_array) when they are built into the library. Platforms tested: FreeBSD 4.1.1 (hawkwind) --- test/tarray.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/test/tarray.c b/test/tarray.c index 6877981..f4f3a52 100644 --- a/test/tarray.c +++ b/test/tarray.c @@ -699,6 +699,9 @@ test_array_compound_array(void) typedef struct { /* Typedef for compound datatype */ int i; float f[ARRAY1_DIM1]; +#ifdef WANT_H5_V1_2_COMPAT + double d[ARRAY1_DIM1]; +#endif /* WANT_H5_V1_2_COMPAT */ } s1_t; s1_t wdata[SPACE1_DIM1][ARRAY1_DIM1]; /* Information to write */ s1_t rdata[SPACE1_DIM1][ARRAY1_DIM1]; /* Information read in */ @@ -710,8 +713,14 @@ test_array_compound_array(void) hid_t tid3; /* Nested Array Datatype ID */ hsize_t sdims1[] = {SPACE1_DIM1}; hsize_t tdims1[] = {ARRAY1_DIM1}; +#ifdef WANT_H5_V1_2_COMPAT + size_t otdims1[] = {ARRAY1_DIM1}; +#endif /* WANT_H5_V1_2_COMPAT */ int ndims; /* Array rank for reading */ hsize_t rdims1[H5S_MAX_RANK]; /* Array dimensions for reading */ +#ifdef WANT_H5_V1_2_COMPAT + size_t ordims1[H5S_MAX_RANK]; /* Array dimensions for reading */ +#endif /* WANT_H5_V1_2_COMPAT */ int nmemb; /* Number of compound members */ char *mname; /* Name of compound field */ size_t off; /* Offset of compound field */ @@ -729,6 +738,10 @@ test_array_compound_array(void) wdata[i][j].i=i*10+j; for(k=0; k