stl push_back: Added check (invalid iterator)
This commit is contained in:
parent
2b04c94b95
commit
dc2ecb8980
|
@ -139,7 +139,7 @@ private:
|
||||||
|
|
||||||
{
|
{
|
||||||
const char code1[] = " void f() { int a; bool use = false; if( use ) a=0; else if( bb ) a=1; int c=1; } ";
|
const char code1[] = " void f() { int a; bool use = false; if( use ) a=0; else if( bb ) a=1; int c=1; } ";
|
||||||
const char code2[] = " void f() { int a; bool use = false; if( bb ) a=1; int c=1; } ";
|
const char code2[] = " void f() { int a; bool use = false; { if( bb ) a=1; int c=1; } } ";
|
||||||
ASSERT_EQUALS(tok(code2), tok(code1));
|
ASSERT_EQUALS(tok(code2), tok(code1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue