Track the type suffix independently for better decomposition of functions and arrays

This commit is contained in:
Peter Dimov
2021-10-05 06:45:41 +03:00
parent f833040d48
commit ccdf5ce031
2 changed files with 136 additions and 149 deletions

View File

@@ -111,6 +111,12 @@ int main()
TEST(int(float, A, B*));
TEST(void(*)());
TEST(void(**)());
TEST(void(***)());
TEST(void(* const* const*)());
TEST(void(* const* const&)());
TEST(void(&)());
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
@@ -125,17 +131,29 @@ int main()
TEST(A volatile[]);
TEST(A const volatile[]);
TEST(A(&)[]);
TEST(A const(***)[]);
TEST(B[1]);
TEST(B const[1]);
TEST(B volatile[1]);
TEST(B const volatile[1]);
TEST(B(&)[1]);
TEST(B const(***)[1]);
TEST(A[][2][3]);
TEST(A const[][2][3]);
TEST(A(&)[][2][3]);
TEST(A const(***)[][2][3]);
TEST(B[1][2][3]);
TEST(B const volatile[1][2][3]);
TEST(B(&)[1][2][3]);
TEST(B const volatile(***)[1][2][3]);
#if !defined(BOOST_NO_CXX11_NULLPTR)
TEST(std::nullptr_t);