OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tm/] [attrib-2.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.