import testing ;


project flags_tests
  : requirements <warnings>all
                 <warnings-as-errors>on
                 <cxxflags>-std=c++11
                 <include>../include/
  : default-build <variant>release
  ;


lib boost_utf
  :
  : <name>boost_unit_test_framework
  ;


unit-test main-test
  : main-test.cpp boost_utf
  : <define>BOOST_TEST_DYN_LINK
    <define>BOOST_TEST_MODULE=enum_flags
  ;


compile should-compile.cpp ;


for src in [ glob shouldnt-compile/*.cpp ] {
  compile-fail $(src) ;
}
