parent
c3225781f3
commit
847d7583e4
|
@ -2028,6 +2028,16 @@ private:
|
||||||
" if (p != nullptr) {}\n"
|
" if (p != nullptr) {}\n"
|
||||||
"}\n");
|
"}\n");
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
|
|
||||||
|
check("template<typename S, typename T>\n"
|
||||||
|
"void f(const std::vector<S>& v) {\n"
|
||||||
|
" T a;\n"
|
||||||
|
" for (typename std::vector<S>::iterator it = v.begin(); it != v.end(); ++it) {\n"
|
||||||
|
" const T& b = static_cast<const T&>(it->find(1));\n"
|
||||||
|
" a = b;\n"
|
||||||
|
" }\n"
|
||||||
|
"}\n");
|
||||||
|
ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void testglobalnamespace() {
|
void testglobalnamespace() {
|
||||||
|
|
Loading…
Reference in New Issue