URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Copyright (C) 2004 Free Software Foundation, Inc.
|
// Copyright (C) 2004 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 21 Jul 2004
|
// Contributed by Nathan Sidwell 21 Jul 2004
|
|
|
// { dg-final { scan-assembler "_ZNK2A1cviEv" } }
|
// { dg-final { scan-assembler "_ZNK2A1cviEv" } }
|
|
|
struct A1
|
struct A1
|
{
|
{
|
operator int () const; // this one
|
operator int () const; // this one
|
};
|
};
|
|
|
struct A2 : A1
|
struct A2 : A1
|
{
|
{
|
template operator T () const;
|
template operator T () const;
|
};
|
};
|
|
|
int Foo (A2 const &b)
|
int Foo (A2 const &b)
|
{
|
{
|
return b;
|
return b;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.