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 #include <stdio.h> 6 7 int main(int argc, char **argv) { 8 Ceed ceed; 9 10 { 11 int major, minor, patch; 12 13 CeedGetVersion(&major, &minor, &patch, NULL); 14 if (!CEED_VERSION_GE(major, minor, patch)) printf("Library version mismatch %d.%d.%d\n", major, minor, patch); 15 } 16 17 CeedInit(argv[1], &ceed); 18 CeedDestroy(&ceed); 19 20 // Test double destroy is safe 21 CeedDestroy(&ceed); 22 return 0; 23 } 24