test: Update the conditions for skipping global-terminate.cpp on aarch64

Our pinned version of mingw-w64 is new enough already, and
latest wine has implemented __C_specific_handler for aarch64,
so this makes the test be bypassed with current pinned clang (10.0.0)
and the soon to be released clang 11.0.0, but is executed with
clang 12.0.0 (where current versions has got this implemented properly).
This commit is contained in:
Martin Storsjö committed 2020-09-28 15:11:10 +03:00
1 parent 4176511d24
commit ccff9e4106
1 file changed
+3 -6
+3 -6
View File
@@ -26,12 +26,9 @@ void whoa() {
}
int main(int argc, char *argv[]) {
#ifdef __aarch64__
// This test succeeds with latest mingw-w64 (since 9718ecee1b95, Sept
// 2020) and latest clang (since 20f7773bb4bb458, Sept 2020, on the
// clang 12.0 branch), but fails before that.
// Additionally it uses the __C_specific_handler function, which
// isn't implemented in wine for aarch64 yet.
#if defined(__aarch64__) && defined(__clang__) && __clang_major__ < 12
// This test succeeds with latest clang (since 20f7773bb4bb458, Sept 2020,
// on the clang 12.0 branch), but fails before that.
return 0;
#else
::std::set_terminate(whoa);