| 1 |
// { dg-do assemble } |
| 2 |
// GROUPS passed scoping |
| 3 |
class BitString { |
| 4 |
public: |
| 5 |
int i; |
| 6 |
int length() const; |
| 7 |
}; |
| 8 |
|
| 9 |
typedef BitString BS; |
| 10 |
|
| 11 |
class V { |
| 12 |
public: |
| 13 |
class BitString { |
| 14 |
public: |
| 15 |
static int x(const ::BitString& value); |
| 16 |
static int y(const class ::BitString& value); // should be parsed ok |
| 17 |
static int z(const BS& value); |
| 18 |
}; |
| 19 |
}; |
| 20 |
|
| 21 |
int |
| 22 |
V::BitString::x(const ::BitString& value) |
| 23 |
{ return value.length(); } |
| 24 |
|
| 25 |
int |
| 26 |
V::BitString::y(const class ::BitString& value) // should be parsed ok |
| 27 |
{ return value.length(); } |
| 28 |
|
| 29 |
int |
| 30 |
V::BitString::z(const BS& value) |
| 31 |
{ return value.length(); } |