Browse Source

Test using _0 as an identifier for nameless fields

Fixes https://github.com/mono/CppSharp/issues/1225.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
const-wchar_t
Dimitar Dobrev 5 years ago
parent
commit
2b9aedaa0b
  1. 23
      tests/Common/Common.h

23
tests/Common/Common.h

@ -1555,6 +1555,27 @@ typedef const char* LPCSTR; @@ -1555,6 +1555,27 @@ typedef const char* LPCSTR;
DLL_API LPCSTR TakeTypedefedMappedType(LPCSTR string);
DLL_API std::string UTF8;
typedef enum SE4IpAddr_Tag {
V4,
V6,
} SE4IpAddr_Tag;
typedef struct {
uint8_t _0[4];
} SE4V4_Body;
typedef struct {
uint8_t _0[16];
} SE4V6_Body;
typedef struct {
SE4IpAddr_Tag tag;
union {
SE4V4_Body v4;
SE4V6_Body v6;
};
} SE4IpAddr;
struct DLL_API StructWithCopyCtor
{
StructWithCopyCtor();
@ -1619,4 +1640,4 @@ void DLL_API PointerToTypedefPointerTestMethod(LPPointerToTypedefPointerTest* lp @@ -1619,4 +1640,4 @@ void DLL_API PointerToTypedefPointerTestMethod(LPPointerToTypedefPointerTest* lp
typedef int *LPINT;
void DLL_API PointerToPrimitiveTypedefPointerTestMethod(LPINT lp, int valToSet);
void DLL_API PointerToPrimitiveTypedefPointerTestMethod(LPINT lp, int valToSet);

Loading…
Cancel
Save