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 12 CeedGetVersion(&major, &minor, &patch, NULL); 13 if (!CEED_VERSION_GE(major, minor, patch)) printf("Library version mismatch %d.%d.%d\n", major, minor, patch); 14 } 15 16 CeedInit(argv[1], &ceed); 17 CeedDestroy(&ceed); 18 19 // Test double destroy is safe 20 CeedDestroy(&ceed); 21 return 0; 22 } 23