Skip to content

Commit ccd452a

Browse files
Update std.cpp
1 parent a1bbdf5 commit ccd452a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/cfg/std.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5033,6 +5033,10 @@ struct T_constParameter_std_begin {
50335033
std::vector<int> v;
50345034
};
50355035

5036+
struct U_constParameter_std_begin {
5037+
std::vector<int> v[1][1];
5038+
};
5039+
50365040
void f(S_constParameter_std_begin& s) {
50375041
std::for_each(std::begin(s.a), std::end(s.a), [](int& i) { ++i; });
50385042
}
@@ -5041,6 +5045,10 @@ void f(T_constParameter_std_begin& t) {
50415045
std::for_each(std::begin(t.v), std::end(t.v), [](int& i) { ++i; });
50425046
}
50435047

5048+
void f(U_constParameter_std_begin& u) {
5049+
std::for_each(std::begin(u.v[0][0]), std::end(u.v[0][0]), [](int& i) { ++i; });
5050+
}
5051+
50445052
void g_constVariable_std_begin(int* p) { *p = 0; }
50455053

50465054
int f_constVariable_std_begin() {

0 commit comments

Comments
 (0)