//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // unique_ptr // test reset #include #include #include "unique_ptr_test_helper.h" int main() { { std::unique_ptr p; p.reset(static_cast(nullptr)); // expected-error {{no matching member function for call to 'reset'}} } { std::unique_ptr p; p.reset(static_cast(nullptr)); // expected-error {{no matching member function for call to 'reset'}} } }