aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/eichin01b.C
blob: 51bb4474c8fefcce696594b104844286ef44e559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
template <class X> class TC {
public:
  X aaa;
  static X sss;
  TC(X a) {aaa = a; }
  TC(X a, X s) {aaa = a; sss = s; }
  void sz(X s) { sss = s; }
  void syy(X syarg) { sss = syarg; }
};

long TC<long>::sss;
float TC<float>::sss;

TC<long> xjj(1,2);

int main(int,char*) {
  TC<float> xff(9.9,3.14);
  xjj.sz(123);
  xff.sz(2.71828);
  return 0;
}