Skip to content

Commit 9c580c6

Browse files
Update testfunctions.cpp
1 parent 145ec93 commit 9c580c6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/testfunctions.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,6 +2220,12 @@ class TestFunctions : public TestFixture {
22202220
" return b;\n"
22212221
"}\n", s);
22222222
TODO_ASSERT_EQUALS("", "[test.cpp:6:5]: (debug) auto token with no type. [autoNoType]\n", errout_str());
2223+
2224+
check("template <typename T>\n" // #13509
2225+
"void f(const T& t) {\n"
2226+
" t.g();\n"
2227+
"}\n", s);
2228+
ASSERT_EQUALS("", errout_str());
22232229
}
22242230

22252231
void checkUseStandardLibrary1() {

0 commit comments

Comments
 (0)