4 #ifndef mozilla_algorithm_h
5 # error "failed to wrap <algorithm>"
9 #ifndef mozilla_vector_h
10 # error "failed to wrap <vector>"
13 // gcc errors out if we |try ... catch| with -fno-exceptions, but we
14 // can still test on windows
17 # define CATCH(e) catch (e)
20 # define CATCH(e) if (0)
28 // v.at(1) on empty v should abort; NOT throw an exception
30 // (Do some arithmetic with result of v.at() to avoid
31 // compiler warnings for unused variable/result.)
32 rv
+= v
.at(1) ? 1 : 2;
33 } CATCH(const std::out_of_range
& e
) {
34 fputs("TEST-FAIL | TestSTLWrappers.cpp | caught an exception?\n",
39 fputs("TEST-FAIL | TestSTLWrappers.cpp | didn't abort()?\n",