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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template11.C
blob
fed322e8415d06b2e43c3afaefc0225e75c6e1b5
1
// Bug: initializers for static data members of templates don't get run.
2
3
template <class T> struct A {
4
static T t;
5
};
6
7
int foo () { return 1; }
8
9
template <>
10
int A<int>::t = foo ();
11
12
int main ()
13
{
14
return (A<int>::t != 1);
15
}