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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tm/] [noexcept-5.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 -O -std=c++0x -fdump-tree-tmmark -fdump-tree-tmlower" }
3
 
4
int global;
5
 
6
void f2(int x)
7
{
8
  __transaction_atomic
9
    {
10
      __transaction_atomic noexcept(true)
11
        {
12
          global += 1;
13
          if (x)
14
              throw 23;
15
        }
16
    }
17
}
18
/* { dg-final { scan-tree-dump-times "eh_must_not_throw" 1 "tmlower" } } */
19
/* { dg-final { scan-tree-dump-times "ITM_RU" 1 "tmmark" } } */
20
/* { dg-final { cleanup-tree-dump "tmmark" } } */
21
/* { dg-final { cleanup-tree-dump "tmlower" } } */

powered by: WebSVN 2.1.0

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