From 040533215adb65f20380f6e94dc03acf25c60371 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Thu, 1 Feb 2018 14:54:25 +0000 Subject: Remove ; use instead. See https://libcxx.llvm.org/TS_deprecation.html llvm-svn: 323971 --- .../optional.object.dtor/dtor.pass.cpp | 54 ---------------------- 1 file changed, 54 deletions(-) delete mode 100644 libcxx/test/std/experimental/optional/optional.object/optional.object.dtor/dtor.pass.cpp (limited to 'libcxx/test/std/experimental/optional/optional.object/optional.object.dtor') diff --git a/libcxx/test/std/experimental/optional/optional.object/optional.object.dtor/dtor.pass.cpp b/libcxx/test/std/experimental/optional/optional.object/optional.object.dtor/dtor.pass.cpp deleted file mode 100644 index 2bec19e6b4f..00000000000 --- a/libcxx/test/std/experimental/optional/optional.object/optional.object.dtor/dtor.pass.cpp +++ /dev/null @@ -1,54 +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 -// - -// ~optional(); - -#include -#include -#include - -using std::experimental::optional; - -class X -{ -public: - static bool dtor_called; - X() = default; - ~X() {dtor_called = true;} -}; - -bool X::dtor_called = false; - -int main() -{ - { - typedef int T; - static_assert(std::is_trivially_destructible::value, ""); - static_assert(std::is_trivially_destructible>::value, ""); - } - { - typedef double T; - static_assert(std::is_trivially_destructible::value, ""); - static_assert(std::is_trivially_destructible>::value, ""); - } - { - typedef X T; - static_assert(!std::is_trivially_destructible::value, ""); - static_assert(!std::is_trivially_destructible>::value, ""); - { - X x; - optional opt{x}; - assert(X::dtor_called == false); - } - assert(X::dtor_called == true); - } -} -- cgit v1.2.3