Skip to content

Commit 6151fcb

Browse files
Update testsimplifyusing.cpp
1 parent f87db23 commit 6151fcb

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

test/testsimplifyusing.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,13 +899,19 @@ class TestSimplifyUsing : public TestFixture {
899899
ASSERT_EQUALS(expected2, tok(code2));
900900
ASSERT_EQUALS("", errout_str());
901901

902-
const char code3[] = "using FP = std::string (*)();\n"
902+
const char code3[] = "using FP = std::string (*)();\n" // #14421
903903
"using FPC = std::string (*const)();\n"
904904
"FP fp;\n"
905905
"FPC fpc{};\n";
906906
const char expected3[] = "std :: string ( * fp ) ( ) ; std :: string ( * const fpc ) ( ) { } ;";
907907
ASSERT_EQUALS(expected3, tok(code3));
908908
ASSERT_EQUALS("", errout_str());
909+
910+
const char code4[] = "using F = void(*)(char);\n" // #14429
911+
"F f(int);\n";
912+
const char expected4[] = "void * f ( char ) ;";
913+
ASSERT_EQUALS(expected4, tok(code4));
914+
ASSERT_EQUALS("", errout_str());
909915
}
910916

911917
void simplifyUsing8970() {

0 commit comments

Comments
 (0)