stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r693173 - /stdcxx/trunk/tests/regress/25.uninitialized.copy.stdcxx-976.cpp
Date Mon, 08 Sep 2008 17:29:46 GMT
Author: faridz
Date: Mon Sep  8 10:29:46 2008
New Revision: 693173

URL: http://svn.apache.org/viewvc?rev=693173&view=rev
Log:
2008-09-08  Farid Zaripov  <faridz@apache.com>

	2008-08-22  Farid Zaripov  <faridz@apache.com>

	Merged r688053 from branches/4.2.x

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

Modified:
    stdcxx/trunk/tests/regress/25.uninitialized.copy.stdcxx-976.cpp

Modified: stdcxx/trunk/tests/regress/25.uninitialized.copy.stdcxx-976.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/regress/25.uninitialized.copy.stdcxx-976.cpp?rev=693173&r1=693172&r2=693173&view=diff
==============================================================================
--- stdcxx/trunk/tests/regress/25.uninitialized.copy.stdcxx-976.cpp (original)
+++ stdcxx/trunk/tests/regress/25.uninitialized.copy.stdcxx-976.cpp Mon Sep  8 10:29:46 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;
 }



Mime
View raw message