summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/testh5repack_dset.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5repack/testh5repack_dset.c')
-rw-r--r--tools/h5repack/testh5repack_dset.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/h5repack/testh5repack_dset.c b/tools/h5repack/testh5repack_dset.c
index e5fe500..88363f7 100644
--- a/tools/h5repack/testh5repack_dset.c
+++ b/tools/h5repack/testh5repack_dset.c
@@ -168,6 +168,10 @@ void write_dset_in(hid_t loc_id,
write_dset(loc_id,1,dims,"string",type_id,buf1);
status = H5Tclose(type_id);
+
+ /* create hard link */
+ status = H5Glink(loc_id, H5G_LINK_HARD, "string", "string_link");
+
/*-------------------------------------------------------------------------
* H5T_BITFIELD
*-------------------------------------------------------------------------