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
@@ -1948,8 +1948,8 @@ class TestConstructors : public TestFixture {
1948
1948
}
1949
1949
1950
1950
voidinitvar_smartptr() { // #10237
1951
-
// TODO: test shuld probably not pass without library
1952
-
const Settings s = settingsBuilder() /*.library("std.cfg")*/.build();
1951
+
// TODO: test should probably not pass without library
1952
+
staticconst Settings s = settingsBuilder() /*.library("std.cfg")*/.build();
1953
1953
check("struct S {\n"
1954
1954
" explicit S(const std::shared_ptr<S>& sp) {\n"
1955
1955
" set(*sp);\n"
@@ -1991,7 +1991,7 @@ class TestConstructors : public TestFixture {
1991
1991
"{ }", true);
1992
1992
ASSERT_EQUALS("[test.cpp:13]: (warning, inconclusive) Member variable 'Fred::ints' is not assigned a value in 'Fred::operator='.\n", errout.str());
1993
1993
1994
-
const Settings s = settingsBuilder().certainty(Certainty::inconclusive).severity(Severity::style).severity(Severity::warning).library("std.cfg").build();
1994
+
staticconst Settings s = settingsBuilder().certainty(Certainty::inconclusive).severity(Severity::style).severity(Severity::warning).library("std.cfg").build();
1995
1995
check("struct S {\n"
1996
1996
" S& operator=(const S& s) { return *this; }\n"
1997
1997
" std::mutex m;\n"
@@ -3582,7 +3582,7 @@ class TestConstructors : public TestFixture {
3582
3582
3583
3583
voiduninitVarInheritClassInit() {
3584
3584
// TODO: test should probably not pass without library
3585
-
const Settings s = settingsBuilder() /*.library("vcl.cfg")*/.build();
3585
+
staticconst Settings s = settingsBuilder() /*.library("vcl.cfg")*/.build();
0 commit comments