finshed a first round of test, starting examples

This commit is contained in:
Lorenzo Caminiti
2015-06-04 07:04:12 -07:00
parent 3e1fe20b01
commit d59d75370b
64 changed files with 1505 additions and 1348 deletions

View File

@@ -0,0 +1,18 @@
// Test multiple post error (for free func, but same for all contracts).
#include <boost/contract/free_function.hpp>
#include <boost/contract/scoped.hpp>
void f() {
boost::contract::scoped c = boost::contract::free_function()
.postcondition([] {})
.postcondition([] {}) // Error (multiple post).
;
}
int main() {
f();
return 0;
}