| 103 | } |
| 104 | |
| 105 | void check(wasm::own<wasm::Ref> actual, const wasm::Ref* expected) { |
| 106 | if (actual.get() != expected && |
| 107 | !(actual && expected && actual->same(expected))) { |
| 108 | std::cout << "> Error reading reference, expected " |
| 109 | << (expected ? expected->get_host_info() : nullptr) << ", got " |
| 110 | << (actual ? actual->get_host_info() : nullptr) << std::endl; |
| 111 | exit(1); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | void run() { |
| 116 | // Initialize. |
no test coverage detected