OLD | NEW |
| (Empty) |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 template <class T> class scoped_array { | |
6 private: | |
7 T* data_; | |
8 }; | |
9 | |
10 class TestClass { | |
11 private: | |
12 scoped_ptr<int[]> test_field_; | |
13 }; | |
14 | |
15 scoped_ptr<int[]> TestFunction(scoped_ptr<int[]> x, scoped_ptr<int[]>) { | |
16 scoped_ptr<scoped_array<int>(scoped_array<int> test, scoped_array<int>)[]> y; | |
17 scoped_ptr<int[]>(*function_pointer)(scoped_ptr<int[]> test, | |
18 scoped_ptr<int[]>); | |
19 scoped_ptr<int[]> test_variable; | |
20 } | |
21 | |
OLD | NEW |