1 /* { dg-do compile } */
2 /* { dg-options "-std=c++11 -O2 -Wno-return-type" } */
4 __extension__ typedef unsigned long long int uint64_t;
5 namespace std __attribute__ ((__visibility__ ("default")))
7 typedef enum memory_order
13 namespace std __attribute__ ((__visibility__ ("default")))
15 template < typename _Tp > struct atomic
17 static constexpr int _S_min_alignment
18 = (sizeof (_Tp) & (sizeof (_Tp) - 1)) || sizeof (_Tp) > 16
20 static constexpr int _S_alignment
21 = _S_min_alignment > alignof (_Tp) ? _S_min_alignment : alignof (_Tp);
22 alignas (_S_alignment) _Tp _M_i;
23 operator _Tp () const noexcept
27 _Tp load (memory_order __m = memory_order_seq_cst) const noexcept
30 __atomic_load (&_M_i, &tmp, __m);
35 namespace lldb_private
44 typedef uint64_t addr_t;
50 void SetAddress (lldb::SBSection section, lldb::addr_t offset);
51 lldb_private::Address & ref ();
54 namespace lldb_private
59 const Address & SetOffset (lldb::addr_t offset)
61 bool changed = m_offset != offset;
63 std::atomic < lldb::addr_t > m_offset;
68 using namespace lldb_private;
70 SBAddress::SetAddress (lldb::SBSection section, lldb::addr_t offset)
72 Address & addr = ref ();
73 addr.SetOffset (offset);