1 // Test that transaction_safe_dynamic can only be used on virtual functions.
2 // { dg-options "-fgnu-tm -std=c++14" }
4 void f() transaction_safe_dynamic; // { dg-error "virtual" }
5 auto a = []() transaction_safe_dynamic {}; // { dg-error "virtual" }
7 void f() transaction_safe_dynamic; // { dg-error "virtual" }
12 void g() transaction_safe_dynamic;