projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
decl.c (start_decl): Look through member variable template.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
var-templ8.C
1
// { dg-do compile { target c++14 } }
2
// { dg-final { scan-assembler "_ZN1X1xIiEE" } }
3
4
struct X
5
{
6
template <class T> static T x;
7
};
8
9
template <class T>
10
T X::x = T();
11
12
int main()
13
{
14
int x = X::x<int>;
15
}