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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tm/] [pr51516.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" } */
3
 
4
struct C {
5
  long l;
6
  C():l(0) {}
7
};
8
 
9
int main()
10
{
11
  C* alloc;
12
  __transaction_atomic {
13
    alloc = new C;
14
  }
15
  alloc->l = 2;
16
 
17
  return 0;
18
}
19
 
20
/* { dg-final { scan-assembler-not "_ITM_getTMCloneOrIrrevocable" } } */
21
/* { dg-final { scan-tree-dump-times ";; Function C::C" 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.