Skip to content

Commit efc515b

Browse files
authored
Try fix for nameless union/struct error
1 parent 47debca commit efc515b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

unittests/CppInterOp/VariableReflectionTest.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,25 +59,25 @@ TEST(VariableReflectionTest, GetDatamembers) {
5959
struct Klass1 { \
6060
Klass1(int i) : num(1), b(i) {} \
6161
int num; \
62-
union { \
62+
union foo { \
6363
double a; \
6464
int b; \
6565
}; \
6666
} const k1(5); \
6767
struct Klass2 { \
6868
Klass2(double d) : num(2), a(d) {} \
6969
int num; \
70-
struct { \
70+
struct foo { \
7171
double a; \
7272
int b; \
7373
}; \
7474
} const k2(2.5); \
7575
struct Klass3 { \
7676
Klass3(int i) : num(i) {} \
7777
int num; \
78-
struct { \
78+
struct foo { \
7979
double a; \
80-
union { \
80+
union bar { \
8181
float b; \
8282
int c; \
8383
}; \

0 commit comments

Comments
 (0)