blob: 6a418e559cfe19cc285c06deb3d694e5d937a763 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// { dg-do compile }
// { dg-options "-fgnu-tm -fdump-tree-optimized-asmname" }
struct __attribute__((transaction_safe)) Tsafe
{
void f();
};
void Tsafe::f() { }
struct __attribute__((transaction_callable)) Tcall
{
void f();
};
void Tcall::f() { }
// { dg-final { scan-tree-dump-times "_ZN5Tsafe1fEv" 1 "optimized" } }
// { dg-final { scan-tree-dump-times "_ZN5Tcall1fEv" 1 "optimized" } }
// { dg-final { scan-tree-dump-times "_ZGTtN5Tsafe1fEv" 1 "optimized" } }
// { dg-final { scan-tree-dump-times "_ZGTtN5Tcall1fEv" 1 "optimized" } }
// { dg-final { cleanup-tree-dump "optimized" } }
|