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 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: c++98, c++03, c++11
14 // any::clear() noexcept
16 #include <experimental/any>
19 #include "experimental_any_helpers.h"
23 using std::experimental::any;
24 using std::experimental::any_cast;
32 , "any.clear() must be noexcept"
44 assert(small::count == 1);
45 assertContains<small>(a, 1);
49 assertEmpty<small>(a);
50 assert(small::count == 0);
55 assert(large::count == 1);
56 assertContains<large>(a);
60 assertEmpty<large>(a);
61 assert(large::count == 0);