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>
5*49aac155SJeremy L Thompson #include <stdio.h>
6c907536fSjeremylt
main(int argc,char ** argv)7c907536fSjeremylt int main(int argc, char **argv) {
8c907536fSjeremylt Ceed ceed;
9c907536fSjeremylt
101070991dSJed Brown {
111070991dSJed Brown int major, minor, patch;
122b730f8bSJeremy L Thompson
131070991dSJed Brown CeedGetVersion(&major, &minor, &patch, NULL);
142b730f8bSJeremy L Thompson if (!CEED_VERSION_GE(major, minor, patch)) printf("Library version mismatch %d.%d.%d\n", major, minor, patch);
151070991dSJed Brown }
161070991dSJed Brown
17c907536fSjeremylt CeedInit(argv[1], &ceed);
18c907536fSjeremylt CeedDestroy(&ceed);
19cd1fe911SJeremy L Thompson
20cd1fe911SJeremy L Thompson // Test double destroy is safe
21cd1fe911SJeremy L Thompson CeedDestroy(&ceed);
22c907536fSjeremylt return 0;
23c907536fSjeremylt }
24