// Test double pre error (for free func, but same for all contracts). #include #include void f() { boost::contract::var contract = boost::contract::free_function() .precondition([] {}) .postcondition([] {}) .precondition([] {}) // Error (double pre, after a post). ; } int main() { f(); return 0; }