Files
contract/test/free_function/pre_pre-error.cpp

19 lines
356 B
C++

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