Files
contract/test/set/function_set_post_post_error.cpp
2015-04-25 19:33:48 -07:00

15 lines
330 B
C++

#include <boost/contract/free_function.hpp>
// Test post cannot be set twice 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([&] {})
.postcondition([&] {}) // Error.
;
return 0;
}