Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / smart_ptr / test / array_fail_spa_spa_a.cpp
1 //
2 // Copyright (c) 2012 Peter Dimov
3 //
4 // Distributed under the Boost Software License, Version 1.0.
5 // See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt
7 //
8
9 #include <boost/shared_ptr.hpp>
10
11 struct X
12 {
13 };
14
15 struct Y: public X
16 {
17 };
18
19 int main()
20 {
21     boost::shared_ptr<Y[]> px;
22     boost::shared_ptr<X[]> px2; px2 = px;
23 }