Files
CMake/Tests/FindHDF5/Test/test_C.c
Brad King 75bb2a2ee4 Tests: Extend FindHDF5 tests to link and run executables
Verify that this works using both targets and variables.
2023-03-30 15:05:59 -04:00

13 lines
210 B
C

#include <hdf5.h>
int main(int argc, const char* argv[])
{
hid_t fid;
if (argc != 2) {
return 1;
}
fid = H5Fcreate(argv[1], H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
H5Fclose(fid);
return 0;
}