URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do run }
|
// { dg-do run }
|
extern "C" void abort ();
|
extern "C" void abort ();
|
|
|
namespace N {
|
namespace N {
|
template T foo (T) { return T (); }
|
template T foo (T) { return T (); }
|
template T bar (T t) { return foo (t); }
|
template T bar (T t) { return foo (t); }
|
}
|
}
|
|
|
struct S { S (int i = 0): i_ (i) { } int i_; };
|
struct S { S (int i = 0): i_ (i) { } int i_; };
|
|
|
namespace N {
|
namespace N {
|
/* template <> */ S foo (S) { return S (1); }
|
/* template <> */ S foo (S) { return S (1); }
|
}
|
}
|
|
|
int main ()
|
int main ()
|
{
|
{
|
if (1 == N::bar (S()).i_)
|
if (1 == N::bar (S()).i_)
|
abort ();
|
abort ();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.