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, c++14
12 // XFAIL: with_system_cxx_lib=macosx10.12
13 // XFAIL: with_system_cxx_lib=macosx10.11
14 // XFAIL: with_system_cxx_lib=macosx10.10
15 // XFAIL: with_system_cxx_lib=macosx10.9
16 // XFAIL: with_system_cxx_lib=macosx10.7
17 // XFAIL: with_system_cxx_lib=macosx10.8
21 // any::reset() noexcept
26 #include "any_helpers.h"
39 , "any.reset() must be noexcept"
51 assert(small::count == 1);
52 assertContains<small>(a, 1);
56 assertEmpty<small>(a);
57 assert(small::count == 0);
62 assert(large::count == 1);
63 assertContains<large>(a, 1);
67 assertEmpty<large>(a);
68 assert(large::count == 0);