1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
19 #include "unique_ptr_test_helper.h"
23 std::unique_ptr<A[]> p;
24 p.reset(static_cast<B*>(nullptr)); // expected-error {{no matching member function for call to 'reset'}}
27 std::unique_ptr<int[]> p;
28 p.reset(static_cast<const int*>(nullptr)); // expected-error {{no matching member function for call to 'reset'}}