test
This commit is contained in:
parent
228f6b1a87
commit
4189d7db46
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue