Skip to content

Commit 316e2bf

Browse files
committed
additional test case
1 parent eec21f9 commit 316e2bf

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎test/testsimplifyusing.cpp‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,13 @@ class TestSimplifyUsing : public TestFixture {
982982
const char expected[] = "template < typename A > class C { A x ; }";
983983
ASSERT_EQUALS(expected, tok(code));
984984
}
985+
{
986+
const char code[] = "using A = bool;\n"
987+
"template<typename T> class C { using A = T; A x; }\n"
988+
"C<int> c;\n";
989+
const char expected[] = "class C<int> ; C<int> c ; class C<int> { int x ; }";
990+
ASSERT_EQUALS(expected, tok(code));
991+
}
985992
}
986993

987994
void simplifyUsing8970() {

0 commit comments

Comments
 (0)