android_mt6572_jiabo/ndk/tests/device/exceptions-crash/jni/foo.cpp
2025-09-05 16:56:03 +08:00

15 lines
215 B
C++

#include <new>
#include <exception>
#include <cstdio>
void foo()
{
try {
::printf("Hello ");
throw std::exception();
}
catch (std::exception e) {
::printf(" World!\n");
}
}