diff --git a/Tests/LibM/test-math.cpp b/Tests/LibM/test-math.cpp index 0c677279851..167dedf65c6 100644 --- a/Tests/LibM/test-math.cpp +++ b/Tests/LibM/test-math.cpp @@ -4,7 +4,12 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#pragma GCC optimize("O0") +#ifdef __clang__ +# pragma clang optimize off +#else +# pragma GCC optimize("O0") +#endif + #include #include