URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ns/] [scoped1.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
//
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 10 Aug 2000 <nathan@codesourcery.com>
// Bug 354. We ICE'd before saying a namespace isn't an aggregate type.
namespace mlp
{
struct base
{
void reset ();
};
}
struct eo : mlp:: base
{
};
void foo (eo &ref)
{
ref.mlp::base::reset ();
ref.base::reset ();
ref.reset ();
ref.mlp::reset (); // { dg-error "" } not an aggregate type
}
Go to most recent revision | Compare with Previous | Blame | View Log