// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. template class scoped_array { private: T* data_; }; class TestClass { private: scoped_ptr test_field_; }; scoped_ptr TestFunction(scoped_ptr x, scoped_ptr) { scoped_ptr(scoped_array test, scoped_array)[]> y; scoped_ptr(*function_pointer)(scoped_ptr test, scoped_ptr); scoped_ptr test_variable; }