]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/tm/opt-1.C
Merge from transactional-memory branch.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / tm / opt-1.C
1 // { dg-do compile }
2 // { dg-options "-fgnu-tm -O" }
3
4 struct S
5 {
6 virtual void f() __attribute__((transaction_safe));
7 };
8
9 void f(S *s) { __transaction_atomic { s->f(); } }