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
Update ChangeLog and version files for release
[official-gcc.git]
/
libitm
/
testsuite
/
libitm.c++
/
eh-3.C
blob
307a63924c33b0c7fdb257b2e9f82ed0a5f21f6e
1
// A handler cannot do the reverse of a transaction-safety conversion.
2
// { dg-do run }
3
// { dg-options "-fgnu-tm" }
4
5
extern "C" void abort();
6
7
void g() {}
8
9
int main()
10
{
11
try { throw g; }
12
catch (void (*p)() transaction_safe) { abort(); }
13
catch (...) { }
14
}