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_SUPPORT_TYPE_CLASSIFICATION_H 10 #define TEST_SUPPORT_TYPE_CLASSIFICATION_H 11 12 #include "copyable.h" 13 14 struct no_default_ctor { 15 no_default_ctor(int); 16 }; 17 struct derived_from_non_default_initializable : no_default_ctor {}; 18 struct has_non_default_initializable { 19 no_default_ctor x; 20 }; 21 22 struct deleted_default_ctor { 23 deleted_default_ctor() = delete; 24 }; 25 struct derived_from_deleted_default_ctor : deleted_default_ctor {}; 26 struct has_deleted_default_ctor { 27 deleted_default_ctor x; 28 }; 29 30 #endif // TEST_SUPPORT_TYPE_CLASSIFICATION_H 31