[libcxx-commits] [PATCH] D140675: [AIX] Fix libc++ Symbol Visibility on AIX

Michael Francis via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Feb 1 21:13:53 PST 2023


francii updated this revision to Diff 494159.
francii added a comment.

Update test case


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140675/new/

https://reviews.llvm.org/D140675

Files:
  libcxx/include/__config
  libcxx/test/libcxx/vendor/ibm/bad_function_call.pass.cpp


Index: libcxx/test/libcxx/vendor/ibm/bad_function_call.pass.cpp
===================================================================
--- /dev/null
+++ libcxx/test/libcxx/vendor/ibm/bad_function_call.pass.cpp
@@ -0,0 +1,19 @@
+//===-- libc++ export redefined symbols test ------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// REQUIRES: powerpc-ibm-aix7.3.0.0
+// REQUIRES: powerpc64-ibm-aix7.3.0.0
+
+#include <functional>
+
+void foo() {}
+
+int main() {
+  std::function<void()> r(foo);
+  r();
+}
Index: libcxx/include/__config
===================================================================
--- libcxx/include/__config
+++ libcxx/include/__config
@@ -169,6 +169,10 @@
 #    define _LIBCPP_ABI_BAD_FUNCTION_CALL_KEY_FUNCTION
 #  endif
 
+#  if defined(_AIX)
+#    define _LIBCPP_ABI_BAD_FUNCTION_CALL_KEY_FUNCTION
+#  endif
+
 #  define _LIBCPP_TOSTRING2(x) #x
 #  define _LIBCPP_TOSTRING(x) _LIBCPP_TOSTRING2(x)
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140675.494159.patch
Type: text/x-patch
Size: 1202 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230202/75845125/attachment.bin>


More information about the libcxx-commits mailing list