MCPcopy Create free account
hub / github.com/boostorg/stacktrace / main

Function main

test/test_void_ptr_cast.cpp:61–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61int main() {
62 // Testing for functions
63 test(foo1_func, foo2_func);
64
65 typedef void(func_t)();
66 test(
67 boost::stacktrace::detail::void_ptr_cast<func_t* const>(foo1_func),
68 boost::stacktrace::detail::void_ptr_cast<func_t* const>(foo2_func)
69 );
70
71 // Testing for variables (just in case...)
72 int i = 0;
73 double j= 1;
74 test(&i, &j);
75
76
77
78 return boost::report_errors();
79}

Callers

nothing calls this directly

Calls 1

testFunction · 0.85

Tested by

no test coverage detected