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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [using7.C] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do compile }
// { dg-do compile }
// Copyright (C) 2003 Free Software Foundation, Inc.
// Copyright (C) 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 1 Aug 2003 
// Contributed by Nathan Sidwell 1 Aug 2003 
// PR 9447. Using decls in reopened template classes.
// PR 9447. Using decls in reopened template classes.
template  struct A { int i; };
template  struct A { int i; };
template  struct B : public A
template  struct B : public A
{
{
    using A::i;
    using A::i;
    int foo() const;
    int foo() const;
};
};
struct C {};
struct C {};
template  int B::foo() const
template  int B::foo() const
{
{
  return i;
  return i;
}
}
 
 

powered by: WebSVN 2.1.0

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