aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/net45.C
blob: 6f9dc3a391b812adf7553fbc378e0d3b5e733259 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Build don't link:

template <class T1, class T2>
struct pair {
    T1 first;
    T2 second;
    pair(const T1& a, const T2& b) : first(a), second(b) {}
};

struct myint {
  myint() {
  }
  myint(const myint& mi) {
  }
  operator=(const myint& mi) {
  }
};

extern pair<const myint, myint> a;
pair<const myint, myint> b(a);