[K/N] Added test for checking C callback set with Kotlin function throwing exception
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#include <stdio.h>
|
||||
|
||||
extern "C" void runAndCatch(void(*f)(void)) {
|
||||
try {
|
||||
f();
|
||||
} catch (...) {
|
||||
printf("CATCH IN C++!\n");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user