1
2// Copyright (C) 2008-2018 Lorenzo Caminiti
3// Distributed under the Boost Software License, Version 1.0 (see accompanying
4// file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt).
5// See: http://www.boost.org/doc/libs/release/libs/contract/doc/html/index.html
6
7// Test compiler error if invariant() declared static.
8
9#undef BOOST_CONTRACT_PERMISSIVE
10#include "static.hpp"
11#ifdef BOOST_CONTRACT_NO_INVARIANTS
12 #error "Forcing error even when invariants not checked"
13#endif
14
15

source code of boost/libs/contract/test/invariant/static_error.cpp