mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-24 12:02:36 +08:00
Fix _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY to always have default visibility.
This prevent the symbols from being both externally available and hidden, which causes them to be linked incorrectly. This is only a problem when the address of the function is explicitly taken since it will always be inlined otherwise. This patch fixes the issues that caused r285456 to be reverted, and can now be reapplied. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@285531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -27,6 +27,11 @@ struct some_alloc
|
||||
~some_alloc() noexcept(false);
|
||||
};
|
||||
|
||||
// Test that it's possible to take the address of basic_string's destructors
|
||||
// by creating globals which will register their destructors with cxa_atexit.
|
||||
std::string s;
|
||||
std::wstring ws;
|
||||
|
||||
int main()
|
||||
{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user