Skip to content

Commit

Permalink
Update deduction guides
Browse files Browse the repository at this point in the history
  • Loading branch information
morzhovets committed Nov 10, 2024
1 parent 0ac2530 commit 0dcbc31
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/sources/libcxx/multiset/multiset.cons/deduct.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ int main(int, char **) {
}
#endif

#if !defined(TEST_GCC)
{
momo::stdish::multiset s{ 1, 2, 1, INT_MAX, 3 };

Expand All @@ -111,6 +112,7 @@ int main(int, char **) {
assert(std::equal(s.begin(), s.end(), std::begin(expected_s),
std::end(expected_s)));
}
#endif

{
momo::stdish::multiset s({ 1, 2, 1, INT_MAX, 3 }, std::greater<int>());
Expand Down Expand Up @@ -157,6 +159,7 @@ int main(int, char **) {
assert(s.get_allocator().get_id() == 45);
}

#if !defined(TEST_GCC)
{
NotAnAllocator a;
momo::stdish::multiset s{ a }; // multiset(initializer_list<NotAnAllocator>)
Expand All @@ -177,6 +180,7 @@ int main(int, char **) {
ASSERT_SAME_TYPE(decltype(s), momo::stdish::multiset<NotAnAllocator>);
assert(s.size() == 2);
}
#endif

{
int source[3] = { 3, 4, 5 };
Expand Down
4 changes: 4 additions & 0 deletions test/sources/libcxx11/multiset/multiset.cons/deduct.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ void main() {
}
#endif

#if !defined(TEST_GCC)
{
momo::stdish::multiset s{ 1, 2, 1, INT_MAX, 3 };

Expand All @@ -112,6 +113,7 @@ void main() {
assert(std::equal(s.begin(), s.end(), std::begin(expected_s),
std::end(expected_s)));
}
#endif

{
momo::stdish::multiset s({ 1, 2, 1, INT_MAX, 3 }, std::greater<int>());
Expand Down Expand Up @@ -158,6 +160,7 @@ void main() {
assert(s.get_allocator().get_id() == 45);
}

#if !defined(TEST_GCC)
{
NotAnAllocator a;
momo::stdish::multiset s{ a }; // multiset(initializer_list<NotAnAllocator>)
Expand All @@ -178,6 +181,7 @@ void main() {
ASSERT_SAME_TYPE(decltype(s), momo::stdish::multiset<NotAnAllocator>);
assert(s.size() == 2);
}
#endif

{
int source[3] = { 3, 4, 5 };
Expand Down

0 comments on commit 0dcbc31

Please sign in to comment.