Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port STL portion of MSVC-PR-311353 #1759

Merged
merged 1 commit into from
Mar 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions tests/std/tests/P0898R3_concepts/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1492,16 +1492,12 @@ namespace test_default_initializable {
using std::default_initializable, std::initializer_list;

STATIC_ASSERT(default_initializable<int>);
#if defined(__clang__) || defined(__EDG__) // TRANSITION, DevCom-952724
#if defined(MSVC_INTERNAL_TESTING) || defined(__clang__) || defined(__EDG__) // TRANSITION, DevCom-952724
STATIC_ASSERT(!default_initializable<int const>);
#else // ^^^ no workaround / assert bug so we'll notice when it's fixed vvv
STATIC_ASSERT(default_initializable<int const>);
#endif // TRANSITION, DevCom-952724
STATIC_ASSERT(default_initializable<int volatile>);
#if defined(__clang__) || defined(__EDG__) // TRANSITION, DevCom-952724
#if defined(MSVC_INTERNAL_TESTING) || defined(__clang__) || defined(__EDG__) // TRANSITION, DevCom-952724
STATIC_ASSERT(!default_initializable<int const volatile>);
#else // ^^^ no workaround / assert bug so we'll notice when it's fixed vvv
STATIC_ASSERT(default_initializable<int const volatile>);
#endif // TRANSITION, DevCom-952724
STATIC_ASSERT(default_initializable<double>);
STATIC_ASSERT(!default_initializable<void>);
Expand All @@ -1515,10 +1511,8 @@ namespace test_default_initializable {
STATIC_ASSERT(!default_initializable<int[]>);
STATIC_ASSERT(!default_initializable<char[]>);
STATIC_ASSERT(!default_initializable<char[][3]>);
#if defined(__clang__) || defined(__EDG__) // TRANSITION, DevCom-952724
#if defined(MSVC_INTERNAL_TESTING) || defined(__clang__) || defined(__EDG__) // TRANSITION, DevCom-952724
STATIC_ASSERT(!default_initializable<int const[2]>);
#else // ^^^ no workaround / assert bug so we'll notice when it's fixed vvv
STATIC_ASSERT(default_initializable<int const[2]>);
#endif // TRANSITION, DevCom-952724

STATIC_ASSERT(!default_initializable<int&>);
Expand Down