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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-fgnu-tm -O -std=c++0x -fdump-tree-tmmark" }
3
 
4
struct TrueFalse
5
{
6
};
7
 
8
int global;
9
 
10
template int foo()
11
{
12
  return __transaction_atomic (global + 2)
13
         + __transaction_atomic (global + 3);
14
}
15
 
16
int f1()
17
{
18
  return foo();
19
}
20
 
21
/* { dg-final { scan-tree-dump-times "ITM_RU" 2 "tmmark" } } */
22
/* { dg-final { cleanup-tree-dump "tmmark" } } */

powered by: WebSVN 2.1.0

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