[libcxx-commits] [PATCH] D140675: [AIX] Fix libc++ Symbol Visibility on AIX
Michael Francis via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 24 09:52:03 PST 2023
francii updated this revision to Diff 491844.
francii added a comment.
Add missing 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.cpp
Index: libcxx/test/libcxx/vendor/ibm/bad_function_call.cpp
===================================================================
--- /dev/null
+++ libcxx/test/libcxx/vendor/ibm/bad_function_call.cpp
@@ -0,0 +1,8 @@
+#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.491844.patch
Type: text/x-patch
Size: 735 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230124/d5b7be55/attachment.bin>
More information about the libcxx-commits
mailing list