| 19 | |
| 20 | struct ExecTest { |
| 21 | ExecTest() { |
| 22 | // initialize if necessary |
| 23 | if (default_device == nullptr) { |
| 24 | for (auto x : {"ExecTest", "--dynet-seed", "10", "--dynet-mem", "10"}) { |
| 25 | av.push_back(strdup(x)); |
| 26 | } |
| 27 | ADD_EXTRA_ARGUMENTS(av) |
| 28 | char **argv = &av[0]; |
| 29 | int argc = av.size(); |
| 30 | dynet::initialize(argc, argv); |
| 31 | } |
| 32 | } |
| 33 | ~ExecTest() { |
| 34 | // This was causing double deallocation errors? |
| 35 | // for (auto x : av) free(x); |
nothing calls this directly
no test coverage detected