diff --git a/test/input/MR/test_matching_layout.h b/test/input/MR/test_matching_layout.h index ba5254ef..0f5f782b 100644 --- a/test/input/MR/test_matching_layout.h +++ b/test/input/MR/test_matching_layout.h @@ -19,7 +19,7 @@ namespace MR::MatchingLayout int arr2d[4][5]; // Having static fields is not an error! Those get their normal getters and setters. - static int x; + inline static int x = 0; }; struct B diff --git a/test/input/MR/test_member_vars.h b/test/input/MR/test_member_vars.h index 5513b053..9b86243c 100644 --- a/test/input/MR/test_member_vars.h +++ b/test/input/MR/test_member_vars.h @@ -7,8 +7,8 @@ namespace MR::MemberVars int x; const int y; - static int z; - static const int w; + inline static int z = 0; + inline static const int w = 0; int &ref; // Those don't get setters, and also get only one (non-const-propagating) getter. int arr[4]; // Arrays don't get setters, because they aren't assignable. But they still get mutable getters