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
Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eh990323-3.C
blob
e8369ca764ccce6f673fc3e7e9c3d34423d101b4
1
// { dg-do run }
2
// try throwing 0 cast to a class object
3
extern "C" void abort ();
4
extern "C" void exit (int);
5
6
struct A {};
7
8
void f()
9
{
10
throw (A*)0;
11
}
12
13
int
14
main()
15
{
16
int flag;
17
18
flag = 0;
19
try {
20
f();
21
}
22
catch (A*) {
23
flag = 1;
24
}
25
26
if (!flag)
27
abort();
28
29
exit (0);
30
}