Sign in
gnu
/
gcc
/
e8cbc2e256b3e9568288594d9f90a2015d31b55a
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template11.C
blob: d58bdfe9e037d5920f16ce7b796654a1b9aeb009 [
file
] [
log
] [
blame
]
// Bug: initializers for static data members of templates don't get run.
template
<
class
T
>
struct
A
{
static
T t
;
};
int
foo
()
{
return
1
;
}
int
A
<int>
::
t
=
foo
();
int
main
()
{
return
(
A
<int>
::
t
!=
1
);
}