xref: /libCEED/tests/t000-ceed.c (revision cd1fe911150d030db934c06854606f7f074fc302)
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 
9c907536fSjeremylt   CeedInit(argv[1], &ceed);
10c907536fSjeremylt   CeedDestroy(&ceed);
11*cd1fe911SJeremy L Thompson 
12*cd1fe911SJeremy L Thompson   // Test double destroy is safe
13*cd1fe911SJeremy L Thompson   CeedDestroy(&ceed);
14c907536fSjeremylt   return 0;
15c907536fSjeremylt }
16