MCPcopy Create free account
hub / github.com/apache/tvm-ffi / ExampleObjectPtr

Function ExampleObjectPtr

tests/cpp/test_example.cc:261–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259};
260
261void ExampleObjectPtr() {
262 namespace ffi = tvm::ffi;
263 ffi::ObjectPtr<MyIntPairObj> obj = ffi::make_object<MyIntPairObj>(100, 200);
264 EXPECT_EQ(obj->a, 100);
265 EXPECT_EQ(obj->b, 200);
266}
267
268void ExampleObjectRef() {
269 namespace ffi = tvm::ffi;

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected