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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tm
/
static_cast1.C
blob
31606c57a7ee3ffb2015685615944aac7b7785d2
1
// The inverse of a transaction-safety conversion cannot be performed with
2
// static_cast.
3
// { dg-options "-fgnu-tm" }
4
5
typedef void (*TS)() transaction_safe;
6
void f()
7
{
8
static_cast<TS>(f); // { dg-error "static_cast" }
9
}