]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/atomic/test/cf_arith_void_ptr.cpp
buildsys: switch source download to quincy
[ceph.git] / ceph / src / boost / libs / atomic / test / cf_arith_void_ptr.cpp
1 // Copyright (c) 2017 Andrey Semashev
2 //
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)
6
7 #include <boost/atomic.hpp>
8
9 int main(int, char *[])
10 {
11 // The test verifies that atomic<> does not provide arithmetic operations on void pointers
12 boost::atomic< void* > a;
13 a.fetch_add(1);
14
15 return 1;
16 }