Author: faridz
Date: Mon Sep 8 10:29:23 2008
New Revision: 693172
URL: http://svn.apache.org/viewvc?rev=693172&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/branches/4.3.x/tests/regress/25.uninitialized.copy.stdcxx-976.cpp
Modified:
stdcxx/branches/4.3.x/tests/regress/25.uninitialized.copy.stdcxx-976.cpp
URL:
http://svn.apache.org/viewvc/stdcxx/branches/4.3.x/tests/regress/25.uninitialized.copy.stdcxx-976.cpp?rev=693172&r1=693171&r2=693172&view=diff
==============================================================================
--- stdcxx/branches/4.3.x/tests/regress/25.uninitialized.copy.stdcxx-976.cpp
(original)
+++ stdcxx/branches/4.3.x/tests/regress/25.uninitialized.copy.stdcxx-976.cpp
Mon Sep 8 10:29:23 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;
}