URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [eichin01a.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
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; }
};
template <> long TC<long>::sss = 0;
template <> float TC<float>::sss = 0.0;
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;
}
Go to most recent revision | Compare with Previous | Blame | View Log