forked from boostorg/core
Add test for enums
This commit is contained in:
@ -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
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user