summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/repo2.C
blob: e3224155e97c47b2e4e77120a5576aef3e7d340f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/17163
// { dg-options "-frepo" }
// { dg-require-host-local "" }
// { dg-skip-if "dkms are not final links" { vxworks_kernel } }

template <int __inst>
struct __Atomicity_lock
{
  static unsigned char _S_atomicity_lock;
};
template <int __inst>
unsigned char __Atomicity_lock<__inst>::_S_atomicity_lock = 0;
template unsigned char __Atomicity_lock<0>::_S_atomicity_lock;

int main () {
}

// { dg-final { cleanup-repo-files } }