mirror of
https://github.com/boostorg/contract.git
synced 2026-01-28 07:02:16 +00:00
21 lines
524 B
C++
Executable File
21 lines
524 B
C++
Executable File
|
|
// Copyright (C) 2008-2012 Lorenzo Caminiti
|
|
// Distributed under the Boost Software License, Version 1.0
|
|
// (see accompanying file LICENSE_1_0.txt or a copy at
|
|
// http://www.boost.org/LICENSE_1_0.txt)
|
|
// Home at http://sourceforge.net/projects/contractpp
|
|
|
|
#include "final_class.hpp"
|
|
#include <contract.hpp>
|
|
|
|
//[final_class_error
|
|
CONTRACT_CLASS(
|
|
class (y) extends( public x ) // Correctly errors because `x` is final.
|
|
) {
|
|
CONTRACT_CLASS_INVARIANT( void )
|
|
};
|
|
//]
|
|
|
|
int main ( void ) { return 0; }
|
|
|