]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/tm/template-4.C
Implement N4514, C++ Extensions for Transactional Memory.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / tm / template-4.C
1 // Test for transaction-safety conversion in deduction.
2 // { dg-options "-fgnu-tm" }
3
4 void fn(int) transaction_safe;
5 void fn();
6
7 template <class T> void f(void(*)(T));
8 template <class T> void f2(void(*)(T) transaction_safe);
9
10 void g()
11 {
12 f(fn);
13 }