OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [eh/] [spec4.C] - Diff between revs 154 and 816

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() {}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.