This commit is contained in:
Daniel Marjamäki 2013-08-27 06:47:06 +02:00
parent 228f6b1a87
commit 4189d7db46
1 changed files with 10 additions and 1 deletions

View File

@ -1624,13 +1624,22 @@ private:
ASSERT_EQUALS("", errout.str());
}
void localvar32() { // ticket #2330
void localvar32() {
// ticket #2330 - fstream >> x
functionVariableUsage("void f() {\n"
" int x;\n"
" fstream &f = getfile();\n"
" f >> x;\n"
"}");
ASSERT_EQUALS("", errout.str());
// ticket #4596 - if (c >>= x) {}
functionVariableUsage("void f() {\n"
" int x;\n"
" C c;\n" // possibly some stream class
" if (c >>= x) {}\n"
"}");
ASSERT_EQUALS("", errout.str());
}
void localvar33() { // ticket #2345