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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [eh/] [spec4.C] - Blame information for rev 749

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/5104
2
// Test that a function with a throw spec is a valid template argument.
3
 
4
#include 
5
 
6
typedef void (*HandlerFunction)();
7
typedef HandlerFunction (*SetHandlerFunction)(HandlerFunction);
8
 
9
template 
10
class HandlerStack {
11
public:
12
  static void defaultHandler();
13
};
14
 
15
typedef HandlerStack Terminate;
16
 
17
template<> void Terminate::defaultHandler() {}

powered by: WebSVN 2.1.0

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