|
|
1.1 root 1: #include "check.h"
2: class c {
3:
4: static int ov(char) ;
5: static int ov(int) ;
6: } ;
7:
8: int c::ov(char c) {return c == 1 ;} ;
9:
10: int c::ov(int i) {return i == 2 ;} ;
11:
12:
13: template <class c1, class c2, class c3> class x {
14: public:
15: int i ;
16: int foo() ;
17:
18: } ;
19:
20: template <class c1, class c2, class c3> int x<c1,c2,c3>::foo() {
21: c2 i = 2 ; c3 c = 1 ;
22:
23: return (c1::ov(i) && c1::ov(c)) ;
24:
25: }
26:
27: main () {
28: start_test(__FILE__) ;
29:
30: x<c, int, char> y ;
31: y.i = 0 ;
32:
33: check(y.foo()) ;
34:
35: end_test() ;
36:
37: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.