2023-06-28 21:20:23 -07:00
|
|
|
// Sanity check: def_comment test
|
2023-06-28 11:43:21 -07:00
|
|
|
|
2023-06-28 21:20:23 -07:00
|
|
|
// The following will show a series of base cases for the gen api.
|
|
|
|
|
|
|
|
class TestEmptyClass;
|
2023-06-29 19:48:47 -07:00
|
|
|
|
2023-06-28 21:20:23 -07:00
|
|
|
class TestEmptyClass
|
2023-06-28 11:43:21 -07:00
|
|
|
{
|
2023-06-28 21:20:23 -07:00
|
|
|
// Empty class body
|
2023-06-28 11:43:21 -07:00
|
|
|
};
|
|
|
|
|
2023-06-28 18:20:29 -07:00
|
|
|
typedef unsigned char u8;
|
2023-06-28 11:43:21 -07:00
|
|
|
|
2023-06-28 21:20:23 -07:00
|
|
|
enum ETestEnum : u8;
|
2023-06-29 19:48:47 -07:00
|
|
|
|
2023-06-28 21:20:23 -07:00
|
|
|
enum ETestEnum : u8
|
2023-06-28 18:20:29 -07:00
|
|
|
{
|
|
|
|
A,
|
|
|
|
B,
|
|
|
|
C,
|
|
|
|
};
|
2023-06-28 21:20:23 -07:00
|
|
|
enum class ETestEnumClass : u8;
|
|
|
|
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
// Empty extern body
|
|
|
|
}
|
|
|
|
|
|
|
|
class TestFriend
|
|
|
|
{
|
2023-06-29 19:48:47 -07:00
|
|
|
friend class TestFriendFwd;
|
2023-06-28 21:20:23 -07:00
|
|
|
};
|
|
|
|
|
2023-06-29 19:48:47 -07:00
|
|
|
void test_function( void );
|
|
|
|
|
|
|
|
void test_function( void )
|
2023-06-28 21:20:23 -07:00
|
|
|
{
|
|
|
|
// Empty function body
|
|
|
|
}
|
|
|
|
|
2023-06-29 19:48:47 -07:00
|
|
|
#include "../DummyInclude.hpp"
|
2023-06-28 21:20:23 -07:00
|
|
|
|
|
|
|
namespace TestNamespace
|
|
|
|
{
|
|
|
|
// Empty namespace body
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2023-06-29 19:48:47 -07:00
|
|
|
enum class EBitFlagtest : u8
|
2023-06-28 21:20:23 -07:00
|
|
|
{
|
2023-06-29 19:48:47 -07:00
|
|
|
A = 1 << 0,
|
|
|
|
B = 1 << 1,
|
|
|
|
C = 1 << 2,
|
|
|
|
};
|
2023-06-28 21:20:23 -07:00
|
|
|
|
2023-06-29 19:48:47 -07:00
|
|
|
EBitFlagtest operator|( EBitFlagtest a, EBitFlagtest b );
|
|
|
|
|
|
|
|
EBitFlagtest operator|( EBitFlagtest a, EBitFlagtest b )
|
|
|
|
{
|
|
|
|
return EBitFlagtest( ( u8 )a | ( u8 )b );
|
2023-06-28 21:20:23 -07:00
|
|
|
}
|
2023-06-29 19:48:47 -07:00
|
|
|
|
|
|
|
void test_function_wparam( u8 a );
|
|
|
|
|
|
|
|
void test_function_wparams( u8 a, u8 b )
|
2023-06-28 21:20:23 -07:00
|
|
|
{
|
|
|
|
// Empty function body
|
2023-06-29 19:48:47 -07:00
|
|
|
}
|
2023-06-28 21:20:23 -07:00
|
|
|
|
2023-06-29 19:48:47 -07:00
|
|
|
void test_function_wparams2( u8 a, u8 b )
|
|
|
|
{
|
|
|
|
// Empty function body
|
2023-06-28 21:20:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class TestEmptyStruct;
|
2023-06-29 19:48:47 -07:00
|
|
|
|
2023-06-28 21:20:23 -07:00
|
|
|
class TestEmptyStruct
|
|
|
|
{
|
|
|
|
// Empty class body
|
|
|
|
};
|
|
|
|
|
|
|
|
union TestEmptyUnion
|
|
|
|
{
|
|
|
|
// Empty union body
|
|
|
|
};
|
|
|
|
|
|
|
|
using TestUsing = u8;
|
|
|
|
using namespace TestNamespace;
|
|
|
|
|
|
|
|
u8 test_variable;
|
|
|
|
u8 test_variable2 = 0x12;
|
|
|
|
|
|
|
|
// End of base case tests.
|