android_mt6572_jiabo/ndk/tests/device/gnustl-shared-1/jni/main.cpp
2025-09-05 16:56:03 +08:00

18 lines
No EOL
357 B
C++

#include <cstdio>
#include <exception>
int foo(void);
int main(void)
{
try {
(void) foo();
}
// Catch all exceptions. Note that if we used catch (std::exception& e)
// instead, we would need to activate rtti as well to avoid crashing
// in the C++ runtime.
catch (...) {
::printf(" World!\n");
}
return 0;
}