Fix MSVC error in cpp_typedef.i

MSVC in C++20 mode complains:

error C7626: unnamed class used in typedef name cannot declare members other than non-static data members, member enumerations, or member classes

The struct member in question isn't actually used by the testcase, so
just remove it.
This commit is contained in:
Olly Betts 2022-07-26 10:11:50 +12:00
parent c759da250f
commit 9d3fb41eef
1 changed files with 0 additions and 1 deletions

View File

@ -30,7 +30,6 @@ public:
// Test that the correct types are used for typedef struct declarations // Test that the correct types are used for typedef struct declarations
typedef struct { typedef struct {
int something; int something;
void m() {}
} UnnamedStruct; } UnnamedStruct;
typedef struct NamedStruct { typedef struct NamedStruct {