URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
// { dg-options "--std=c++0x" }
|
// { dg-options "--std=c++0x" }
|
template struct same_type;
|
template struct same_type;
|
template struct same_type {};
|
template struct same_type {};
|
|
|
template
|
template
|
struct S
|
struct S
|
{
|
{
|
typedef T const (&type)();
|
typedef T const (&type)();
|
};
|
};
|
|
|
void f()
|
void f()
|
{
|
{
|
// initial implementation didn't ignore const qualifier on
|
// initial implementation didn't ignore const qualifier on
|
// reference, resulting in a typedef of 'const int& (&)()'
|
// reference, resulting in a typedef of 'const int& (&)()'
|
same_type::type, int&(&)()>();
|
same_type::type, int&(&)()>();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.