Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
tm
/
template-3.C
blob: 356d2a89b9b3478a80e53ae434bc4b938cbc4752 [
file
] [
log
] [
blame
]
// { dg-options "-fgnu-tm" }
void
fn
(
int
)
transaction_safe
;
void
fn
(
double
);
template
<
class
T
>
void
f
(
T t
)
transaction_safe
{
fn
(
t
);
// { dg-error "double" }
}
void
g
()
{
f
(
42
);
// OK
f
(
3.14
);
}