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