[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 02:31:38 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:

I'm not sure why it's this way in the first place TBH. I don't think it'll make a difference.

https://github.com/llvm/llvm-project/pull/144317


More information about the libcxx-commits mailing list