Added tests for scoped enums and underlying_type. Fixed a bug with native_value(). Fixed a bug that allowed implicit conversions of scoped enums to int (at least with clang 3.4).

This commit is contained in:
Andrey Semashev
2014-06-07 02:30:29 +04:00
parent 2b18ddfbce
commit f930ce31cf
6 changed files with 293 additions and 2 deletions

View File

@@ -75,3 +75,9 @@ run demangle_test.cpp : : : <test-info>always_show_run_output ;
run demangled_name_test.cpp : : : <test-info>always_show_run_output ;
run demangled_name_test.cpp : : : <rtti>off <test-info>always_show_run_output : demangled_name_test_no_rtti ;
run scoped_enum.cpp ;
compile-fail scoped_enum_compile_fail_conv_from_int.cpp ;
compile-fail scoped_enum_compile_fail_conv_to_int.cpp ;
run underlying_type.cpp ;