Skip to content

Commit 33b4b3d

Browse files
Update testtokenize.cpp
1 parent 263338e commit 33b4b3d

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

‎test/testtokenize.cpp‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4697,6 +4697,23 @@ class TestTokenizer : public TestFixture {
46974697
tokenizeAndStringify(code));
46984698
ASSERT_EQUALS("", errout_str());
46994699
}
4700+
{
4701+
const char code[] = "namespace N {\n" // #15192
4702+
" template <typename... Ts>\n"
4703+
" struct S {};\n"
4704+
"}\n"
4705+
"template <typename... Ts, typename = N::S<decltype(Ts())...>>\n"
4706+
"void f() {}\n";
4707+
ASSERT_EQUALS("namespace N {\n"
4708+
"template < typename ... Ts >\n"
4709+
"struct S { } ;\n"
4710+
"}\n"
4711+
"template < typename ... Ts , typename = N :: S < decltype ( Ts ( ) ) ... > >\n"
4712+
"void f ( ) { }",
4713+
tokenizeAndStringify(code));
4714+
ASSERT_EQUALS("", errout_str());
4715+
}
4716+
47004717
}
47014718

47024719
void cpp03template1() {

0 commit comments

Comments
 (0)