URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Copyright (C) 2002 Free Software Foundation, Inc.
|
// Copyright (C) 2002 Free Software Foundation, Inc.
|
// Contributed by Michael Matz 03 Mar 2002
|
// Contributed by Michael Matz 03 Mar 2002
|
// instance of an actual pattern in 252.eon from SPEC2000
|
// instance of an actual pattern in 252.eon from SPEC2000
|
|
|
// The last Wrapper once wasn't completed when applying '='.
|
// The last Wrapper once wasn't completed when applying '='.
|
|
|
template
|
template
|
class Wrapper {
|
class Wrapper {
|
public:
|
public:
|
Wrapper (T& a);
|
Wrapper (T& a);
|
Wrapper (const Wrapper& ref);
|
Wrapper (const Wrapper& ref);
|
};
|
};
|
|
|
template
|
template
|
class Element {
|
class Element {
|
public:
|
public:
|
T * operator[](int x);
|
T * operator[](int x);
|
};
|
};
|
|
|
void test()
|
void test()
|
{
|
{
|
char bla = 42;
|
char bla = 42;
|
Element< Wrapper > elem;
|
Element< Wrapper > elem;
|
elem[1][1] = Wrapper (bla);
|
elem[1][1] = Wrapper (bla);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.