1//////////////////////////////////////////////////////////////////////////////
2// Copyright 2005-2006 Andreas Huber Doenni
3// Distributed under the Boost Software License, Version 1.0. (See accompany-
4// ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5//////////////////////////////////////////////////////////////////////////////
6
7
8
9#include <boost/statechart/state_machine.hpp>
10#include <boost/statechart/simple_state.hpp>
11
12#include <boost/mpl/list.hpp>
13
14
15
16namespace sc = boost::statechart;
17namespace mpl = boost::mpl;
18
19
20
21struct A;
22struct InvalidChartTest : sc::state_machine< InvalidChartTest, A > {};
23struct B;
24struct C;
25struct A : sc::simple_state< A, InvalidChartTest, mpl::list< B, C > > {};
26
27// B resides in the 0th region not the 1st
28struct B : sc::simple_state< B, A::orthogonal< 1 > > {};
29struct C : sc::simple_state< C, A::orthogonal< 1 > > {};
30
31int main()
32{
33 InvalidChartTest machine;
34 machine.initiate();
35 return 0;
36}
37

source code of boost/libs/statechart/test/InvalidChartTest3.cpp