}
}
+// MSVC C4530 complains about exception handler usage when exceptions are
+// disabled. Temporarily disable that warning so we can test that they are, in
+// fact, disabled.
+#if defined(OS_WIN)
+#pragma warning(push)
+#pragma warning(disable: 4530)
+#endif
// A global test counter for number of times the NewHandler is called.
static int news_handled = 0;
std::set_new_handler(saved_handler);
}
+#if defined(OS_WIN)
+#pragma warning(pop)
+#endif
+
} // namespace
//-----------------------------------------------------------------------------