Revert "Roll NDK to r11c and extract it into its own repository."
[android_tools.git] / ndk / tests / device / test-stlport_static-exception / jni / eh33.cpp
blobb679991e4633032edd129f83e9e04b163a71a26b
1 // { dg-do run { xfail sparc64-*-elf z8k-*-* arm-*-pe } }
2 // { dg-options "-fexceptions" }
4 #include <exception>
6 void my_unexpected() {
7 throw 42;
10 void foo() throw (int) { throw "Hi"; }
12 int main() {
13 std::set_unexpected (my_unexpected);
14 try {
15 foo();
16 } catch (int i) {
17 if (i == 42)
18 return 0;
20 return 1;