]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/atomic/test/cf_arith_func_ptr.cpp
1 // Copyright (c) 2017 Andrey Semashev
3 // Distributed under the Boost Software License, Version 1.0.
4 // See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 #include <boost/atomic.hpp>
9 int main(int, char *[])
11 // The test verifies that atomic<> does not provide arithmetic operations on function pointers
12 typedef void (*func_ptr
)(int);
13 boost::atomic
< func_ptr
> a
;