Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / localization / locales / locale.convenience / conversions / conversions.string / ctor_copy.pass.cpp
blobd3117d3ef6d0651057d9c022820763735999deaa
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 // These constructors are still unavailable in C++03, but this test depends
10 // on access control SFINAE and fails without it.
11 // UNSUPPORTED: c++03
13 // <locale>
15 // ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS
17 // wstring_convert<Codecvt, Elem, Wide_alloc, Byte_alloc>
19 // wstring_convert(wstring_convert const&) = delete;
20 // wstring_convert& operator=(wstring_convert const&) = delete;
22 // XFAIL: no-wide-characters
24 #include <cassert>
25 #include <codecvt>
26 #include <locale>
27 #include <type_traits>
29 #include "test_macros.h"
31 int main(int, char**)
33 typedef std::codecvt_utf8<wchar_t> Codecvt;
34 typedef std::wstring_convert<Codecvt> Myconv;
35 static_assert(!std::is_copy_constructible<Myconv>::value, "");
36 static_assert(!std::is_copy_assignable<Myconv>::value, "");
38 return 0;