URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [eh19.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-options "-fexceptions" }
class test1 {
public:
class fehler{public:fehler(){};};
void func(int a) {
if( a == 0 )
throw fehler();
}
};
int main() {
test1 var;
try {
var.func(1);
var.func(0);
} catch(test1::fehler()) // function type promoted to pointer
{
;
}
}
Go to most recent revision | Compare with Previous | Blame | View Log