Add test for enums

This commit is contained in:
Peter Dimov
2021-09-29 21:09:19 +03:00
parent 91a64b3bcf
commit a5cbddc466
2 changed files with 12 additions and 0 deletions

View File

@ -89,6 +89,11 @@ template<class T> std::string typeid_name()
r = r.substr( 7 );
}
if( r.substr( 0, 5 ) == "enum " )
{
r = r.substr( 5 );
}
#endif
// libc++ inline namespace

View File

@ -42,6 +42,11 @@ template<class T1, class T2> struct X
{
};
enum E
{
e1
};
int main()
{
TEST(int);
@ -49,6 +54,8 @@ int main()
TEST(A);
TEST(B);
TEST(E);
TEST(A const);
TEST(A volatile);
TEST(A const volatile);