diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2018-02-01 15:21:14 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2018-02-01 15:21:14 +0000 |
| commit | 5d8babe30d6bcca6900811be97ec746a92b570b5 (patch) | |
| tree | 38ab79a5107bdca7e2d405169a5671a935e9ae7e /libcxx/test/std/experimental/any/any.class/any.observers/empty.pass.cpp | |
| parent | 040533215adb65f20380f6e94dc03acf25c60371 (diff) | |
| download | bcm5719-llvm-5d8babe30d6bcca6900811be97ec746a92b570b5.tar.gz bcm5719-llvm-5d8babe30d6bcca6900811be97ec746a92b570b5.zip | |
Remove <experimental/any>; use <any> instead. See https://libcxx.llvm.org/TS_deprecation.html
llvm-svn: 323972
Diffstat (limited to 'libcxx/test/std/experimental/any/any.class/any.observers/empty.pass.cpp')
| -rw-r--r-- | libcxx/test/std/experimental/any/any.class/any.observers/empty.pass.cpp | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/libcxx/test/std/experimental/any/any.class/any.observers/empty.pass.cpp b/libcxx/test/std/experimental/any/any.class/any.observers/empty.pass.cpp deleted file mode 100644 index bdf0d511b81..00000000000 --- a/libcxx/test/std/experimental/any/any.class/any.observers/empty.pass.cpp +++ /dev/null @@ -1,64 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// 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. -// -//===----------------------------------------------------------------------===// - -// UNSUPPORTED: c++98, c++03, c++11 - -// <experimental/any> - -// any::empty() noexcept - -#include <experimental/any> -#include <cassert> - -#include "experimental_any_helpers.h" - -int main() -{ - using std::experimental::any; - // noexcept test - { - any a; - static_assert(noexcept(a.empty()), "any::empty() must be noexcept"); - } - // empty - { - any a; - assert(a.empty()); - - a.clear(); - assert(a.empty()); - - a = 42; - assert(!a.empty()); - } - // small object - { - small const s(1); - any a(s); - assert(!a.empty()); - - a.clear(); - assert(a.empty()); - - a = s; - assert(!a.empty()); - } - // large object - { - large const l(1); - any a(l); - assert(!a.empty()); - - a.clear(); - assert(a.empty()); - - a = l; - assert(!a.empty()); - } -} |

