We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 194a1be commit b211139Copy full SHA for b211139
1 file changed
test/testbufferoverrun.cpp
@@ -4759,6 +4759,16 @@ class TestBufferOverrun : public TestFixture {
4759
" out_row[c] = vector<V, 2>(1,2);\n"
4760
"}\n");
4761
ASSERT_EQUALS("", errout.str());
4762
+
4763
+ check("void f(const uint8_t* d, const uint8_t L) {\n" // #10092
4764
+ " for (uint8_t i = 0U; i < L; ++i)\n"
4765
+ " g(d[i]);\n"
4766
+ "}\n"
4767
+ "void h() {\n"
4768
+ " const uint8_t u = 4;\n"
4769
+ " f(&u, N);\n"
4770
+ "}");
4771
+ ASSERT_EQUALS("", errout.str());
4772
}
4773
};
4774
0 commit comments