Skip to content

Commit 7c50208

Browse files
committed
unordered_map_adaptor
1 parent 1a39d06 commit 7c50208

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

test/sources/libcxx11/unord.map/unord.map.cnstr/deduct.pass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,13 @@ void main()
143143
assert(m.size() == 0);
144144
}
145145

146+
#if !(defined(TEST_GCC) && __GNUC__ < 13)
146147
{
147148
LIBCXX_TEST_CLASS m { P{1,1L}, P{2,2L}, P{1,1L}, P{INT_MAX,1L}, P{3,1L} };
148149
ASSERT_SAME_TYPE(decltype(m), LIBCXX_TEST_CLASS<int, long>);
149150
assert(std::is_permutation(m.begin(), m.end(), std::begin(expected_m), std::end(expected_m)));
150151
}
152+
#endif
151153

152154
{
153155
LIBCXX_TEST_CLASS m({ P{1,1L}, P{2,2L}, P{1,1L}, P{INT_MAX,1L}, P{3,1L} }, 42);

test/sources/libcxx11/unord.map/unord.map.cnstr/deduct_const.pass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,13 @@ void main()
111111
assert(m.get_allocator().get_id() == 41);
112112
}
113113

114+
#if !(defined(TEST_GCC) && __GNUC__ < 13)
114115
{
115116
LIBCXX_TEST_CLASS m { PC{1,1L}, PC{2,2L}, PC{1,1L}, PC{INT_MAX,1L}, PC{3,1L} };
116117
ASSERT_SAME_TYPE(decltype(m), LIBCXX_TEST_CLASS<int, long>);
117118
assert(std::is_permutation(m.begin(), m.end(), std::begin(expected_m), std::end(expected_m)));
118119
}
120+
#endif
119121

120122
{
121123
LIBCXX_TEST_CLASS m({ PC{1,1L}, PC{2,2L}, PC{1,1L}, PC{INT_MAX,1L}, PC{3,1L} }, 42);

test/sources/libcxx20/unord.map/unord.map.cnstr/deduct.pass.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,13 @@ int main(int, char**)
156156
assert(m.size() == 0);
157157
}
158158

159+
#if !(defined(TEST_GCC) && __GNUC__ < 13)
159160
{
160161
LIBCXX_TEST_CLASS m { P{1,1L}, P{2,2L}, P{1,1L}, P{INT_MAX,1L}, P{3,1L} };
161162
ASSERT_SAME_TYPE(decltype(m), LIBCXX_TEST_CLASS<int, long>);
162163
assert(std::is_permutation(m.begin(), m.end(), std::begin(expected_m), std::end(expected_m)));
163164
}
165+
#endif
164166

165167
{
166168
LIBCXX_TEST_CLASS m({ P{1,1L}, P{2,2L}, P{1,1L}, P{INT_MAX,1L}, P{3,1L} }, 42);
@@ -217,6 +219,7 @@ int main(int, char**)
217219
assert(m.get_allocator().get_id() == 48);
218220
}
219221

222+
#if !(defined(TEST_GCC) && __GNUC__ < 13)
220223
{
221224
// Examples from LWG3025
222225
LIBCXX_TEST_CLASS m{std::pair{1, 1}, {2, 2}, {3, 3}};
@@ -225,6 +228,7 @@ int main(int, char**)
225228
LIBCXX_TEST_CLASS m2{m.begin(), m.end()};
226229
ASSERT_SAME_TYPE(decltype(m2), LIBCXX_TEST_CLASS<int, int>);
227230
}
231+
#endif
228232

229233
{
230234
// Examples from LWG3531

test/sources/libcxx20/unord.map/unord.map.cnstr/deduct_const.pass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,13 @@ int main(int, char**)
102102
assert(m.get_allocator().get_id() == 41);
103103
}
104104

105+
#if !(defined(TEST_GCC) && __GNUC__ < 13)
105106
{
106107
LIBCXX_TEST_CLASS m { PC{1,1L}, PC{2,2L}, PC{1,1L}, PC{INT_MAX,1L}, PC{3,1L} };
107108
ASSERT_SAME_TYPE(decltype(m), LIBCXX_TEST_CLASS<int, long>);
108109
assert(std::is_permutation(m.begin(), m.end(), std::begin(expected_m), std::end(expected_m)));
109110
}
111+
#endif
110112

111113
{
112114
LIBCXX_TEST_CLASS m({ PC{1,1L}, PC{2,2L}, PC{1,1L}, PC{INT_MAX,1L}, PC{3,1L} }, 42);

0 commit comments

Comments
 (0)