repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp"
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh19.C
blob
bbd668f9833bfb55bed648d9e826977cff9b8ff9
1
// { dg-do assemble }
2
// { dg-options "-fexceptions" }
3
4
class test1 {
5
public:
6
class fehler{public:fehler(){};};
7
void func(int a) {
8
if( a == 0 )
9
throw fehler();
10
}
11
};
12
13
int main() {
14
test1 var;
15
16
try {
17
var.func(1);
18
var.func(0);
19
} catch(test1::fehler()) // function type promoted to pointer
20
{
21
;
22
}
23
}