[libcxx-commits] [libcxx] [libcxx] [test] Fix odr_signature tests with optimizations enabled (PR #144317)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jun 16 01:53:34 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; }
----------------
philnik777 wrote:
Let's use `TEST_NOINLINE` instead.
https://github.com/llvm/llvm-project/pull/144317
More information about the libcxx-commits
mailing list