Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
anon3.C
blob: eee7acd820f69a94429a03826ec137775ec65c8e [
file
] [
log
] [
blame
]
// PR c++/28370
// { dg-do run }
namespace
{
template
<
typename
T
>
struct
A
{
static
int
*
a
;
};
template
<
typename
T
>
int
*
A
<
T
>::
a
=
0
;
}
int
*
foo
()
{
return
A
<int>
::
a
;
}
int
main
()
{
return
foo
()
!=
0
;
}