mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 04:47:24 +02:00
Add test for scoped enums
This commit is contained in:
@ -42,11 +42,20 @@ template<class T1, class T2> struct X
|
|||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
enum E
|
enum E1
|
||||||
{
|
{
|
||||||
e1
|
e1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if !defined(BOOST_NO_CXX11_SCOPED_ENUMS)
|
||||||
|
|
||||||
|
enum class E2
|
||||||
|
{
|
||||||
|
e2
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
TEST(int);
|
TEST(int);
|
||||||
@ -54,7 +63,13 @@ int main()
|
|||||||
TEST(A);
|
TEST(A);
|
||||||
TEST(B);
|
TEST(B);
|
||||||
|
|
||||||
TEST(E);
|
TEST(E1);
|
||||||
|
|
||||||
|
#if !defined(BOOST_NO_CXX11_SCOPED_ENUMS)
|
||||||
|
|
||||||
|
TEST(E2);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
TEST(A const);
|
TEST(A const);
|
||||||
TEST(A volatile);
|
TEST(A volatile);
|
||||||
|
Reference in New Issue
Block a user