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
2017-06-14 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
anon3.C
blob
eee7acd820f69a94429a03826ec137775ec65c8e
1
// PR c++/28370
2
// { dg-do run }
3
4
namespace
5
{
6
template<typename T> struct A { static int *a; };
7
template<typename T> int *A<T>::a = 0;
8
}
9
10
int *
11
foo ()
12
{
13
return A<int>::a;
14
}
15
16
int
17
main ()
18
{
19
return foo() != 0;
20
}