[libcxx-commits] [libcxx] [libcxx] [test] Fix odr_signature tests with optimizations enabled (PR #144317)
Martin Storsjö via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jun 16 02:33:09 PDT 2025
================
@@ -21,14 +21,14 @@
// -fno-exceptions
#ifdef TU1
# include <__config>
-_LIBCPP_HIDE_FROM_ABI inline int f() { return 1; }
+_LIBCPP_HIDE_FROM_ABI __attribute__((noinline)) inline int f() { return 1; }
----------------
mstorsjo wrote:
Ok, changed to `TEST_NOINLINE` with an include of `"test_macros.h"` now.
https://github.com/llvm/llvm-project/pull/144317
More information about the libcxx-commits
mailing list