Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.mike/net45.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 assemble } |
2 | |
3 template <class T1, class T2> | |
4 struct pair { | |
5 T1 first; | |
6 T2 second; | |
7 pair(const T1& a, const T2& b) : first(a), second(b) {} | |
8 }; | |
9 | |
10 struct myint { | |
11 myint() { | |
12 } | |
13 myint(const myint& mi) { | |
14 } | |
15 myint& operator=(const myint& mi) { return *this; } | |
16 }; | |
17 | |
18 extern pair<const myint, myint> a; | |
19 pair<const myint, myint> b(a); |