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 <[EMAIL PROTECTED]>
2008-08-22 Farid Zaripov <[EMAIL PROTECTED]>
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;
}