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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.gb
/
scope11.C
blob
45f540f9dfa069d949193a18b303b20b68d6e35e
1
// { dg-do assemble }
2
// GROUPS passed gb scope
3
template<class T, int N> 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<char, 4> 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
}