repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
net45.C
blob
9d423aa4153f0e025ffc7b2f0cbab3b8d6fda2a5
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);