1 parent eec21f9 commit 316e2bfCopy full SHA for 316e2bf
1 file changed
test/testsimplifyusing.cpp
@@ -982,6 +982,13 @@ class TestSimplifyUsing : public TestFixture {
982
const char expected[] = "template < typename A > class C { A x ; }";
983
ASSERT_EQUALS(expected, tok(code));
984
}
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
+ }
992
993
994
void simplifyUsing8970() {
0 commit comments