URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// Copyright (C) 2002 Free Software Foundation
|
// Copyright (C) 2002 Free Software Foundation
|
// Origin: C++/70
|
// Origin: C++/70
|
// Contributed by Gabriel Dos Reis
|
// Contributed by Gabriel Dos Reis
|
// { dg-do compile }
|
// { dg-do compile }
|
|
|
template
|
template
|
struct S;
|
struct S;
|
|
|
template
|
template
|
void operator* (S, S);
|
void operator* (S, S);
|
|
|
template
|
template
|
struct S
|
struct S
|
{
|
{
|
friend void operator*<> (S, S); // { } // okay
|
friend void operator*<> (S, S); // { } // okay
|
void operator* (T) { }
|
void operator* (T) { }
|
};
|
};
|
|
|
template
|
template
|
void operator* (S, S) { }
|
void operator* (S, S) { }
|
|
|
int main()
|
int main()
|
{
|
{
|
S s1, s2;
|
S s1, s2;
|
s1 * s2;
|
s1 * s2;
|
s1 * 2;
|
s1 * 2;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.