]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/local_function/test/goto_error_seq.cpp
2 // Copyright (C) 2009-2012 Lorenzo Caminiti
3 // Distributed under the Boost Software License, Version 1.0
4 // (see accompanying file LICENSE_1_0.txt or a copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 // Home at http://www.boost.org/libs/local_function
8 #include <boost/local_function.hpp>
10 int error(int x
, int y
) {
11 int BOOST_LOCAL_FUNCTION( (int z
) ) {
12 if(z
<= 0) goto failure
;
16 } BOOST_LOCAL_FUNCTION_NAME(validate
)
18 return validate(x
+ y
);