8sa1-gcc/gcc/testsuite/g++.old-deja/g++.mike/eh19.C
Jason Merrill 4495766362 fix implicit int
From-SVN: r23760
1998-11-22 18:23:45 -05:00

24 lines
341 B
C

// Special g++ Options: -fexceptions
// Build don't link:
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
{
;
}
}