Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/torture/pr40081.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 struct Atomic_t { |
2 Atomic_t(int i) : val(i) { } | |
3 volatile int val; | |
4 }; | |
5 class RefCount { | |
6 public: | |
7 RefCount(Atomic_t c) : m_count(c) { } | |
8 Atomic_t m_count; | |
9 }; | |
10 class IntrusiveCountableBase { | |
11 RefCount m_useCount; | |
12 protected: | |
13 IntrusiveCountableBase(); | |
14 }; | |
15 IntrusiveCountableBase::IntrusiveCountableBase() : m_useCount(0) { } | |
16 |