diff --git a/unittests/CppInterOp/ScopeReflectionTest.cpp b/unittests/CppInterOp/ScopeReflectionTest.cpp index f6dc8234a..ac7c28925 100644 --- a/unittests/CppInterOp/ScopeReflectionTest.cpp +++ b/unittests/CppInterOp/ScopeReflectionTest.cpp @@ -660,10 +660,11 @@ TEST(ScopeReflectionTest, IsSubclass) { TEST(ScopeReflectionTest, GetBaseClassOffset) { std::vector Decls; +#define UNUSED(x) (void)(x) #define Stringify(s) Stringifyx(s) #define Stringifyx(...) #__VA_ARGS__ #define CODE \ - class A { int m_a; }; \ + class A { int m_a; void foo(const int i) {UNUSED(i);}}; \ class B { int m_b; }; \ class C : virtual A, virtual B { int m_c; }; \ class D : virtual A, virtual B, public C { int m_d; }; \