diff options
Diffstat (limited to 'libcxx/test/containers/container.adaptors/stack/stack.defn/assign_copy.pass.cpp')
| -rw-r--r-- | libcxx/test/containers/container.adaptors/stack/stack.defn/assign_copy.pass.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/libcxx/test/containers/container.adaptors/stack/stack.defn/assign_copy.pass.cpp b/libcxx/test/containers/container.adaptors/stack/stack.defn/assign_copy.pass.cpp deleted file mode 100644 index 38769e3fb026..000000000000 --- a/libcxx/test/containers/container.adaptors/stack/stack.defn/assign_copy.pass.cpp +++ /dev/null @@ -1,33 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// <stack> - -// stack& operator=(const stack& q); - -#include <stack> -#include <cassert> - -template <class C> -C -make(int n) -{ - C c; - for (int i = 0; i < n; ++i) - c.push_back(i); - return c; -} - -int main() -{ - std::stack<int> q(make<std::deque<int> >(5)); - std::stack<int> q2; - q2 = q; - assert(q2 == q); -} |
