Files
swift-mirror/test/Interop/Cxx/class/Inputs/conforms-to.h

50 lines
1.5 KiB
C

#ifndef TEST_INTEROP_CXX_CLASS_INPUTS_DESTRUCTORS_H
#define TEST_INTEROP_CXX_CLASS_INPUTS_DESTRUCTORS_H
struct
__attribute__((swift_attr("conforms_to:SwiftTest.Testable")))
HasTest {
void test() const;
};
struct
__attribute__((swift_attr("conforms_to:SwiftTest.Playable")))
__attribute__((swift_attr("import_reference")))
__attribute__((swift_attr("retain:immortal")))
__attribute__((swift_attr("release:immortal")))
HasPlay {
void play() const;
};
struct __attribute__((swift_attr("conforms_to:SwiftTest.Testable")))
__attribute__((swift_attr(
"conforms_to:SwiftTest.Playable"))) MultipleConformanceHasTestAndPlay {
void test() const;
void play() const;
};
struct
__attribute__((swift_attr("conforms_to:ImportedModule.ProtocolFromImportedModule")))
HasImportedConf {
void testImported() const;
};
struct DerivedFromHasTest : HasTest {};
struct DerivedFromDerivedFromHasTest : HasTest {};
struct DerivedFromMultipleConformanceHasTestAndPlay
: MultipleConformanceHasTestAndPlay {};
struct __attribute__((swift_attr("conforms_to:SwiftTest.Testable")))
DerivedFromDerivedFromHasTestWithDuplicateArg : HasTest {};
struct DerivedFromHasPlay : HasPlay {};
struct DerivedFromDerivedFromHasPlay : HasPlay {};
struct HasTestAndPlay : HasPlay, HasTest {};
struct DerivedFromHasTestAndPlay : HasPlay, HasTest {};
struct DerivedFromHasImportedConf : HasImportedConf {};
struct DerivedFromDerivedFromHasImportedConf : HasImportedConf {};
#endif // TEST_INTEROP_CXX_CLASS_INPUTS_DESTRUCTORS_H