gcc/testsuite/g++.dg/tm/template-5.C
raw| 1 | // Test for deduction based on transaction_safe. |
| 2 | // { dg-options "-fgnu-tm -std=c++11" } |
| 3 | |
| 4 | void f() transaction_safe; |
| 5 | void g(); |
| 6 | |
| 7 | template <class T> struct A; |
| 8 | template <class R, class...Ps> |
| 9 | struct A<R (Ps...) transaction_safe> { }; |
| 10 | |
| 11 | A<decltype(f)> a; |
| 12 | A<decltype(g)> b; // { dg-error "incomplete" } |