We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0089f5a commit 3435f2dCopy full SHA for 3435f2d
test/teststl.cpp
@@ -5430,6 +5430,14 @@ class TestStl : public TestFixture {
5430
" return sum;\n"
5431
"}\n");
5432
ASSERT_EQUALS("", errout_str());
5433
+
5434
+ check("int f(const std::vector<int>& v) {\n" // #12900
5435
+ " int x{};\n"
5436
+ " for (const auto i : v)\n"
5437
+ " x = dostuff(i);\n"
5438
+ " return x;\n"
5439
+ "}\n");
5440
+ ASSERT_EQUALS("", errout_str());
5441
}
5442
5443
void loopAlgoContainerInsert() {
0 commit comments