compiling all tests after some reorganization

This commit is contained in:
Lorenzo Caminiti
2015-04-25 19:33:48 -07:00
parent ab26a9fcc6
commit 524d58ac9a
41 changed files with 250 additions and 268 deletions

View File

@@ -0,0 +1,15 @@
#include <boost/contract/free_function.hpp>
// Test post cannot be set twice (not even after pre) for free functions
// (member functions use same setter objects, so no need to test those too).
int main() {
auto c = boost::contract::free_function()
.postcondition([&] {})
.precondition([&] {})
.postcondition([&] {}) // Error.
;
return 0;
}