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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tm/] [cgraph_edge.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 -O3" }
3
 
4
template  inline void advance(_InputIterator& __i, _Distance __n)
5
  {
6
    if (__n > 0)
7
      while (__n--)
8
        --__i;
9
    else
10
      --__i;
11
  }
12
 
13
void  _Rb_tree_increment ();
14
 
15
template struct _Rb_tree_iterator
16
  {
17
    typedef _Rb_tree_iterator<_Tp> iterator;
18
 
19
    iterator& operator--()
20
      {
21
        _Rb_tree_increment();
22
      }
23
  };
24
 
25
void update ()
26
  {
27
    _Rb_tree_iterator::iterator it;
28
    __transaction_relaxed
29
      {
30
        advance (it, 0);
31
      }
32
  }
33
 

powered by: WebSVN 2.1.0

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