1 /// @file 2 /// Test creation and destruction of a CEED object 3 /// \test Test creation and destruction of a CEED object 4 #include <ceed.h> 5 6 int main(int argc, char **argv) { 7 Ceed ceed; 8 9 { 10 int major, minor, patch; 11 CeedGetVersion(&major, &minor, &patch, NULL); 12 if (!CEED_VERSION_GE(major, minor, patch)) { 13 // LCOV_EXCL_START 14 printf("Library version mismatch %d.%d.%d\n", major, minor, patch); 15 // LCOV_EXCL_STOP 16 } 17 } 18 19 CeedInit(argv[1], &ceed); 20 CeedDestroy(&ceed); 21 22 // Test double destroy is safe 23 CeedDestroy(&ceed); 24 return 0; 25 } 26