| 59 | } |
| 60 | |
| 61 | int 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 | } |