URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// PR c++/5104
|
// PR c++/5104
|
// Test that a function with a throw spec is a valid template argument.
|
// Test that a function with a throw spec is a valid template argument.
|
|
|
#include
|
#include
|
|
|
typedef void (*HandlerFunction)();
|
typedef void (*HandlerFunction)();
|
typedef HandlerFunction (*SetHandlerFunction)(HandlerFunction);
|
typedef HandlerFunction (*SetHandlerFunction)(HandlerFunction);
|
|
|
template
|
template
|
class HandlerStack {
|
class HandlerStack {
|
public:
|
public:
|
static void defaultHandler();
|
static void defaultHandler();
|
};
|
};
|
|
|
typedef HandlerStack Terminate;
|
typedef HandlerStack Terminate;
|
|
|
template<> void Terminate::defaultHandler() {}
|
template<> void Terminate::defaultHandler() {}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.