view gcc/testsuite/g++.dg/tm/overload2.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// 13.4p1: A function with type F is selected for the function type FT of the
// target type required in the context if F (after possibly applying the
// transaction-safety conversion (4.14 [conv.tx])) is identical to FT.
// { dg-options "-fgnu-tm" }

void f() transaction_safe;
void f(int);

void (*p)() = f;