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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 struct Atomic_t {
kono
parents:
diff changeset
2 Atomic_t(int i) : val(i) { }
kono
parents:
diff changeset
3 volatile int val;
kono
parents:
diff changeset
4 };
kono
parents:
diff changeset
5 class RefCount {
kono
parents:
diff changeset
6 public:
kono
parents:
diff changeset
7 RefCount(Atomic_t c) : m_count(c) { }
kono
parents:
diff changeset
8 Atomic_t m_count;
kono
parents:
diff changeset
9 };
kono
parents:
diff changeset
10 class IntrusiveCountableBase {
kono
parents:
diff changeset
11 RefCount m_useCount;
kono
parents:
diff changeset
12 protected:
kono
parents:
diff changeset
13 IntrusiveCountableBase();
kono
parents:
diff changeset
14 };
kono
parents:
diff changeset
15 IntrusiveCountableBase::IntrusiveCountableBase() : m_useCount(0) { }
kono
parents:
diff changeset
16