1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11, c++14
13 // any::reset() noexcept
18 #include "test_macros.h"
19 #include "any_helpers.h"
26 ASSERT_NOEXCEPT(a
.reset());
36 std::any a
= small(1);
37 assert(small::count
== 1);
38 assertContains
<small
>(a
, 1);
42 assertEmpty
<small
>(a
);
43 assert(small::count
== 0);
47 std::any a
= large(1);
48 assert(large::count
== 1);
49 assertContains
<large
>(a
, 1);
53 assertEmpty
<large
>(a
);
54 assert(large::count
== 0);