We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34b6045 commit ed55f53Copy full SHA for ed55f53
libcxx/test/std/containers/sequences/vector/vector.cons/exceptions.pass.cpp
@@ -139,6 +139,14 @@ int main(int, char**) {
139
check_new_delete_called();
140
#endif // TEST_STD_VER >= 14
141
142
+ try { // Throw in vector(size_type, value_type, const allocator_type&) from the type
143
+ int throw_after = 1;
144
+ ThrowingT v(throw_after);
145
+ std::vector<ThrowingT> vec(1, v, std::allocator<ThrowingT>());
146
+ } catch (int) {
147
+ }
148
+ check_new_delete_called();
149
+
150
try { // Throw in vector(InputIterator, InputIterator) from input iterator
151
std::vector<int> vec((Iterator<std::input_iterator_tag>()), Iterator<std::input_iterator_tag>(2));
152
} catch (int) {
0 commit comments