You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/testconstructors.cpp
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1946,8 +1946,8 @@ class TestConstructors : public TestFixture {
1946
1946
}
1947
1947
1948
1948
voidinitvar_smartptr() { // #10237
1949
-
// TODO: test shuld probably not pass without library
1950
-
const Settings s = settingsBuilder() /*.library("std.cfg")*/.build();
1949
+
// TODO: test should probably not pass without library
1950
+
staticconst Settings s = settingsBuilder() /*.library("std.cfg")*/.build();
1951
1951
check("struct S {\n"
1952
1952
" explicit S(const std::shared_ptr<S>& sp) {\n"
1953
1953
" set(*sp);\n"
@@ -1989,7 +1989,7 @@ class TestConstructors : public TestFixture {
1989
1989
"{ }", true);
1990
1990
ASSERT_EQUALS("[test.cpp:13]: (warning, inconclusive) Member variable 'Fred::ints' is not assigned a value in 'Fred::operator='.\n", errout.str());
1991
1991
1992
-
const Settings s = settingsBuilder().certainty(Certainty::inconclusive).severity(Severity::style).severity(Severity::warning).library("std.cfg").build();
1992
+
staticconst Settings s = settingsBuilder().certainty(Certainty::inconclusive).severity(Severity::style).severity(Severity::warning).library("std.cfg").build();
1993
1993
check("struct S {\n"
1994
1994
" S& operator=(const S& s) { return *this; }\n"
1995
1995
" std::mutex m;\n"
@@ -3580,7 +3580,7 @@ class TestConstructors : public TestFixture {
3580
3580
3581
3581
voiduninitVarInheritClassInit() {
3582
3582
// TODO: test should probably not pass without library
3583
-
const Settings s = settingsBuilder() /*.library("vcl.cfg")*/.build();
3583
+
staticconst Settings s = settingsBuilder() /*.library("vcl.cfg")*/.build();
0 commit comments