mirror of
https://github.com/boostorg/contract.git
synced 2026-02-27 04:52:22 +00:00
compiling all tests after some reorganization
This commit is contained in:
14
test/set/function_set_pre_pre_error.cpp
Normal file
14
test/set/function_set_pre_pre_error.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
#include <boost/contract/free_function.hpp>
|
||||
|
||||
// Test pre 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()
|
||||
.precondition([&] {})
|
||||
.precondition([&] {}) // Error.
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user