Author: faridz
Date: Fri Aug 22 04:03:08 2008
New Revision: 688053

URL: http://svn.apache.org/viewvc?rev=688053&view=rev
Log:
2008-08-22  Farid Zaripov  <[EMAIL PROTECTED]>

        * tests/regress/25.uninitialized.copy.stdcxx-976.cpp:
        Extended test case.

Modified:
    stdcxx/branches/4.2.x/tests/regress/25.uninitialized.copy.stdcxx-976.cpp

Modified: 
stdcxx/branches/4.2.x/tests/regress/25.uninitialized.copy.stdcxx-976.cpp
URL: 
http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/regress/25.uninitialized.copy.stdcxx-976.cpp?rev=688053&r1=688052&r2=688053&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/regress/25.uninitialized.copy.stdcxx-976.cpp 
(original)
+++ stdcxx/branches/4.2.x/tests/regress/25.uninitialized.copy.stdcxx-976.cpp 
Fri Aug 22 04:03:08 2008
@@ -52,6 +52,17 @@
     bool operator!= (const InputIterator &rhs) const { return p_ != rhs.p_; }
 };
 
+class Test
+{
+    // private and not defined
+    Test (const Test&);
+
+public:
+    Test () {}
+    Test (Test&) {}
+    ~Test () {}
+};
+
 
 int main ()
 {
@@ -68,5 +79,12 @@
     std::uninitialized_copy (VIter (src),  VIter (src + 5),  dst);
     std::uninitialized_copy (CVIter (src), CVIter (src + 5), dst);
 
+
+    Test test;
+    volatile Test vtest;
+
+    std::uninitialized_copy (&test, &test, &test);
+    std::uninitialized_copy (&test, &test, &vtest);
+
     return 0;
 }


Reply via email to