Skip to content

Commit c59959d

Browse files
committed
Make libc++ tests only
1 parent 9938700 commit c59959d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter.pass.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ int main(int, char**) {
110110

111111
// Make sure we satisfy the complexity requirement in terms of the number of times the assignment
112112
// operator is called.
113+
//
114+
// There is currently ambiguity as to whether this is truly mandated by the Standard, so we only
115+
// test it for libc++.
116+
#ifdef _LIBCPP_VERSION
113117
{
114118
Tracker tracker;
115119
std::vector<TrackedAssignment> v;
@@ -128,6 +132,7 @@ int main(int, char**) {
128132
assert(tracker.copy_assignments == 0);
129133
assert(tracker.move_assignments == 3);
130134
}
135+
#endif
131136

132137
return 0;
133138
}

libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter_iter.pass.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ int main(int, char**) {
198198

199199
// Make sure we satisfy the complexity requirement in terms of the number of times the assignment
200200
// operator is called.
201+
//
202+
// There is currently ambiguity as to whether this is truly mandated by the Standard, so we only
203+
// test it for libc++.
204+
#ifdef _LIBCPP_VERSION
201205
{
202206
Tracker tracker;
203207
std::vector<TrackedAssignment> v;
@@ -216,6 +220,7 @@ int main(int, char**) {
216220
assert(tracker.copy_assignments == 0);
217221
assert(tracker.move_assignments == 2);
218222
}
223+
#endif
219224

220225
return 0;
221226
}

0 commit comments

Comments
 (0)