URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
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 Nathan Sidwell 16 Sep 2002
|
// Contributed by Nathan Sidwell 16 Sep 2002
|
|
|
// PR 7718. ICE.
|
// PR 7718. ICE.
|
|
|
template
|
template
|
void default_initializer(const OBJECT &) { }
|
void default_initializer(const OBJECT &) { }
|
|
|
|
|
template
|
template
|
class cContainer {
|
class cContainer {
|
public:
|
public:
|
template
|
template
|
void Add(const INITIALIZER &initializer) {
|
void Add(const INITIALIZER &initializer) {
|
init_function(initializer);
|
init_function(initializer);
|
}
|
}
|
};
|
};
|
|
|
int main() {
|
int main() {
|
cContainer > c;
|
cContainer > c;
|
|
|
c.Add(42);
|
c.Add(42);
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.