Skip to content

Commit 0ea5f5f

Browse files
Update testother.cpp
1 parent 1271964 commit 0ea5f5f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎test/testother.cpp‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4304,6 +4304,14 @@ class TestOther : public TestFixture {
43044304
check("void f(std::vector<int>& v) {\n"
43054305
" int *p = v.data();\n"
43064306
" p[0] += 1;\n"
4307+
"}\n"
4308+
"void g(std::vector<int*>& v) {\n"
4309+
" int** p = v.data();\n"
4310+
" p[0][0] += 1;\n"
4311+
"}\n"
4312+
"void h(std::vector<int*>& v) {\n"
4313+
" int** p = v.data();\n"
4314+
" *p[0] += 1;\n"
43074315
"}\n");
43084316
ASSERT_EQUALS("", errout_str());
43094317
}

0 commit comments

Comments
 (0)