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 //===----------------------------------------------------------------------===// 8 9 #ifndef TEST_LIBCXX_UTILITIES_EXPECTED_TYPES_H 10 #define TEST_LIBCXX_UTILITIES_EXPECTED_TYPES_H 11 12 #include <initializer_list> 13 14 struct DefaultMayThrow { 15 DefaultMayThrow(); 16 }; 17 18 struct CopyMayThrow { 19 CopyMayThrow(const CopyMayThrow&); 20 }; 21 22 struct ConvertFromCopyIntMayThrow { 23 ConvertFromCopyIntMayThrow(const int&); 24 ConvertFromCopyIntMayThrow(int&&) noexcept; 25 }; 26 27 struct ConvertFromMoveIntMayThrow { 28 ConvertFromMoveIntMayThrow(const int&) noexcept; 29 ConvertFromMoveIntMayThrow(int&&); 30 }; 31 32 struct ConvertFromInitializerListNoexcept { 33 ConvertFromInitializerListNoexcept(std::initializer_list<int>) noexcept; 34 }; 35 36 struct ConvertFromInitializerListMayThrow { 37 ConvertFromInitializerListMayThrow(std::initializer_list<int>); 38 }; 39 40 struct CopyConstructMayThrow { 41 CopyConstructMayThrow(const CopyConstructMayThrow&); 42 CopyConstructMayThrow& operator=(CopyConstructMayThrow const&) noexcept; 43 }; 44 45 struct CopyAssignMayThrow { 46 CopyAssignMayThrow(const CopyAssignMayThrow&) noexcept; 47 CopyAssignMayThrow& operator=(CopyAssignMayThrow const&); 48 }; 49 50 51 #endif // TEST_LIBCXX_UTILITIES_EXPECTED_TYPES_H 52