aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/scope4.C
blob: 43f90164cb635f628e54653f6dc2b69cb86bba7a (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
// Build don't link: 
// excess errors test - XFAIL *-*-*
// GROUPS passed scoping
class BitString {
public:
    int i;
    int length() const;
};

typedef BitString BS;

class V {
public:
    class BitString {
    public:
        static int x(const ::BitString& value);
      static int y(const class ::BitString& value); // should be parsed ok
        static int z(const BS& value);
    };
};

int
V::BitString::x(const ::BitString& value)
{ return value.length(); }

int
V::BitString::y(const class ::BitString& value) // should be parsed ok
{ return value.length(); }

int
V::BitString::z(const BS& value)
{ return value.length(); }