]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/boost_no_noexcept.ipp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / config / test / boost_no_noexcept.ipp
1 // Copyright (C) 2011 Takaya Saito
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 // See http://www.boost.org/libs/config for most recent version.
7
8 // MACRO: BOOST_NO_CXX11_NOEXCEPT
9 // TITLE: C++0x noexcept unavailable
10 // DESCRIPTION: The compiler does not support C++0x noexcept
11
12 namespace boost_no_cxx11_noexcept {
13
14 void quiet_warning(bool){}
15
16 int f() noexcept ;
17 int g() noexcept( noexcept( f() ) ) ;
18
19 int test()
20 {
21 bool b = noexcept( g() );
22 quiet_warning(b);
23 return 0;
24 }
25
26 }