OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template11.C
1
// { dg-do run }
2
// Bug: initializers for static data members of templates don't get run.
3
4
template <class T> struct A {
5
static T t;
6
};
7
8
int foo () { return 1; }
9
10
template <>
11
int A<int>::t = foo ();
12
13
int main ()
14
{
15
return (A<int>::t != 1);
16
}