OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [scope4.C] - Rev 699

Compare with Previous | Blame | View Log

// { dg-do assemble  }
// 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(); }

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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