Files
swift-mirror/test/Interop/Cxx/static/Inputs/inline-static-member-var.h
Ryan Mansfield 6234dd159d [Tests] Enable staticMemberInitializedAtRuntime in inline-static-member-var.swift.
apple/swift#30914 has been merged so this part of the test can be enabled.
2024-08-27 15:00:30 -04:00

18 lines
514 B
C++

#ifndef TEST_INTEROP_CXX_STATIC_INPUTS_INLINE_STATIC_MEMBER_VAR_H
#define TEST_INTEROP_CXX_STATIC_INPUTS_INLINE_STATIC_MEMBER_VAR_H
inline static int init() { return 42; }
class WithInlineStaticMember {
public:
inline static int staticMember = 12;
inline static int staticMemberInitializedAtRuntime = init();
static int getStaticMemberFromCxx();
static int *getStaticMemberAddress()
__attribute__((swift_attr("import_unsafe")));
static void setStaticMemberFromCxx(int);
};
#endif