diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-13 15:01:50 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-13 15:01:50 +0000 |
commit | cbf53483d1471ac7276042d33c508037dc3f345f (patch) | |
tree | 9e45c916f4b7d0b145cefabb29ad61f9bf65961f /libstdc++-v3/testsuite/tr1 | |
parent | 1fa2a8d5f327315e3d2e01d4ed721942408b846c (diff) | |
download | gcc-cbf53483d1471ac7276042d33c508037dc3f345f.tar.gz |
2009-03-13 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/39405
* testsuite/20_util/shared_ptr/cons/39405.cc: New.
* testsuite/tr1/2_general_utilities/shared_ptr/cons/39405.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144839 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/tr1')
-rw-r--r-- | libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/39405.cc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/39405.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/39405.cc new file mode 100644 index 00000000000..4641e1bc050 --- /dev/null +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/39405.cc @@ -0,0 +1,30 @@ +// { dg-do compile } + +// Copyright (C) 2009 Free Software Foundation +// +// This file is part of the GNU ISO C++ Library. This library is free +// software; you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 2, or (at your option) +// any later version. + +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING. If not, write to the Free +// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +// USA. + +#include <tr1/memory> + +// libstdc++/39405 +template<typename T> + struct foo + { + std::tr1::shared_ptr<foo<T> > m_foo; + }; + +std::tr1::shared_ptr<foo<int> > t; |