Author: sebor
Date: Tue Aug 28 16:01:21 2007
New Revision: 570590
URL: http://svn.apache.org/viewvc?rev=570590&view=rev
Log:
2007-08-28 Martin Sebor <[EMAIL PROTECTED]>
* 20.specialized.stdcxx-390.cpp: Regression test for STDCXX-390.
Added:
incubator/stdcxx/trunk/tests/regress/20.specialized.stdcxx-390.cpp (with
props)
Added: incubator/stdcxx/trunk/tests/regress/20.specialized.stdcxx-390.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/regress/20.specialized.stdcxx-390.cpp?rev=570590&view=auto
==============================================================================
--- incubator/stdcxx/trunk/tests/regress/20.specialized.stdcxx-390.cpp (added)
+++ incubator/stdcxx/trunk/tests/regress/20.specialized.stdcxx-390.cpp Tue Aug
28 16:01:21 2007
@@ -0,0 +1,49 @@
+/**************************************************************************
+ *
+ * 20.specialized.stdcxx-390.cpp - regression test for STDCXX-390
+ *
+ * http://issues.apache.org/jira/browse/STDCXX-390
+ *
+ * $Id$
+ *
+ **************************************************************************
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ *
+ **************************************************************************/
+
+#include <memory>
+
+int main ()
+{
+ int i = 0;
+ const int ci = 0;
+ volatile int vi = 0;
+ const volatile int cvi = 0;
+
+ std::uninitialized_copy (&i, &i, &i);
+ std::uninitialized_copy (&i, &i, &vi);
+
+ std::uninitialized_copy (&ci, &ci, &i);
+ std::uninitialized_copy (&ci, &ci, &vi);
+
+ std::uninitialized_copy (&vi, &vi, &i);
+ std::uninitialized_copy (&vi, &vi, &vi);
+
+ std::uninitialized_copy (&cvi, &cvi, &i);
+ std::uninitialized_copy (&cvi, &cvi, &vi);
+}
Propchange: incubator/stdcxx/trunk/tests/regress/20.specialized.stdcxx-390.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/stdcxx/trunk/tests/regress/20.specialized.stdcxx-390.cpp
------------------------------------------------------------------------------
svn:keywords = Id