stl push_back: Added check (invalid iterator)

This commit is contained in:
Daniel Marjamäki 2009-02-18 19:58:50 +00:00
parent 2b04c94b95
commit dc2ecb8980
1 changed files with 1 additions and 1 deletions

View File

@ -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 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));
}