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
/
template-3.C
blob
356d2a89b9b3478a80e53ae434bc4b938cbc4752
1
// { dg-options "-fgnu-tm" }
2
3
void fn(int) transaction_safe;
4
void fn(double);
5
6
template <class T> void f(T t) transaction_safe
7
{
8
fn(t); // { dg-error "double" }
9
}
10
11
void g()
12
{
13
f(42); // OK
14
f(3.14);
15
}