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_array<int> test_field_; 13 }; 14 15 scoped_array<int> TestFunction(scoped_array<int> x, scoped_array<int>) { 16 scoped_array<scoped_array<int>(scoped_array<int> test, scoped_array<int>)> y; 17 scoped_array<int>(*function_pointer)(scoped_array<int> test, 18 scoped_array<int>); 19 scoped_array<int> test_variable; 20 } 21 22