repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge -r 127928:132243 from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
repo6.C
blob
b15bab5a28bc0a1d8a0f04e4286f36993ae5efa3
1
// PR c++/34178
2
// { dg-options "-frepo" }
3
// { dg-final { cleanup-repo-files } }
4
// { dg-require-host-local "" }
5
6
template<typename T>
7
class A
8
{
9
private:
10
static const int x;
11
static int y;
12
13
public:
14
int getX () { return x + y; }
15
};
16
17
template<typename T> const int A<T>::x = 0;
18
template<typename T> int A<T>::y = 0;
19
20
int
21
main ()
22
{
23
A<int> a;
24
return a.getX();
25
}