URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
//
|
//
|
// Copyright (C) 2000 Free Software Foundation, Inc.
|
// Copyright (C) 2000 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 5 Sept 2000
|
// Contributed by Nathan Sidwell 5 Sept 2000
|
|
|
// bug 73. We failed to compare explicit arguments for a TEMPLATE_ID_EXPR in a
|
// bug 73. We failed to compare explicit arguments for a TEMPLATE_ID_EXPR in a
|
// TYPENAME_TYPE.
|
// TYPENAME_TYPE.
|
|
|
struct Plus {
|
struct Plus {
|
template
|
template
|
struct Sig { typedef int Third;};
|
struct Sig { typedef int Third;};
|
};
|
};
|
|
|
|
|
template
|
template
|
struct Ethel {
|
struct Ethel {
|
typedef int WrappedType;
|
typedef int WrappedType;
|
};
|
};
|
|
|
struct Fred {
|
struct Fred {
|
|
|
template
|
template
|
Ethel::Third> baz ();
|
Ethel::Third> baz ();
|
|
|
|
|
template
|
template
|
Ethel::Third>
|
Ethel::Third>
|
foo ( const Z&, const Ethel&, const Ethel&) const;
|
foo ( const Z&, const Ethel&, const Ethel&) const;
|
};
|
};
|
|
|
int main() {
|
int main() {
|
Fred f;
|
Fred f;
|
Ethel e;
|
Ethel e;
|
Plus p;
|
Plus p;
|
|
|
f.foo (p, e, e);
|
f.foo (p, e, e);
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.