OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.gb/] [scope11.C] - Blame information for rev 312

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// GROUPS passed gb scope
3
template class fixed_array {
4
public:
5
  T _array[N];
6
};
7
 
8
class Hash {
9
public:
10
  Hash (int);
11
};
12
 
13
typedef fixed_array ipAddress_t;
14
 
15
class IPAddress {
16
protected:
17
  long _i;
18
public:
19
  IPAddress (ipAddress_t ip) { }
20
  IPAddress () { }
21
  IPAddress netMask () { return *this; }
22
  operator Hash ();
23
};
24
 
25
IPAddress::operator Hash ()
26
{
27
  return Hash (_i);
28
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.