summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.gb/scope12.C
blob: 664e791189bd582822ab9c1ec43516c6d47eecff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// { dg-do assemble  }
// GROUPS passed gb scope
template<class T, int N> class FixedArray_t {
public:
  T _array[N];

  FixedArray_t () { }
};

typedef FixedArray_t<unsigned char, 4> IPAddress_t;

class IPAddress {
public:
  IPAddress (IPAddress_t ip) { }

  operator IPAddress_t ()
  {
    IPAddress_t rv;
    return rv;
  }

  IPAddress () { }
};

class DatagramHeader {
public:
  IPAddress _src;

  void setHeader (IPAddress);
};

void
DatagramHeader::setHeader (IPAddress)
{
}