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