Skip to content

Commit

Permalink
Test using _0 as an identifier for nameless fields
Browse files Browse the repository at this point in the history
Fixes #1225.

Signed-off-by: Dimitar Dobrev <[email protected]>
  • Loading branch information
ddobrev committed May 27, 2020
1 parent 29c6eb5 commit 2b9aeda
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion tests/Common/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);

0 comments on commit 2b9aeda

Please sign in to comment.