mirror of
https://github.com/boostorg/contract.git
synced 2026-02-27 17:02:15 +00:00
19 lines
367 B
C++
19 lines
367 B
C++
|
|
// 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;
|
|
}
|
|
|