Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/member.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // { dg-do compile } |
2 | |
3 | |
4 class BIXSet{ | |
5 int z[4]; | |
6 public: | |
7 void f(BIXSet &other){ | |
8 z[0]=other.z[0]; | |
9 } | |
10 | |
11 }; | |
12 | |
13 class TestCase2{ | |
14 public: | |
15 BIXSet a,b; | |
16 | |
17 public: | |
18 void run(void){ | |
19 BIXSet x,y; | |
20 process(0,x,y); | |
21 } | |
22 | |
23 protected: | |
24 template<class BS> void process(const int d,BS &en,BS &lb){ | |
25 a.f(en);b.f(lb); | |
26 } | |
27 | |
28 }; |