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

Subversion Repositories openrisc

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

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)) A
5
{
6
};
7
 
8
struct B : public A
9
{
10
  void f();
11
};
12
 
13
struct C
14
{
15
};
16
 
17
struct D : public C
18
{
19
};
20
 
21
struct E : public D, public A
22
{
23
  void f();
24
};
25
 
26
void B::f() { }
27
void E::f() { }
28
 
29
// { dg-final { scan-tree-dump-times "_ZN1B1fEv" 1 "optimized" } }
30
// { dg-final { scan-tree-dump-times "_ZGTtN1B1fEv" 1 "optimized" } }
31
// { dg-final { scan-tree-dump-times "_ZN1E1fEv" 1 "optimized" } }
32
// { dg-final { scan-tree-dump-times "_ZGTtN1E1fEv" 1 "optimized" } }
33
// { 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.