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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tm/] [pr46654.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fgnu-tm" } */
3
 
4
extern void baz(int);
5
 
6
int y;
7
void foo(volatile int x)
8
{
9
  __transaction_atomic {
10
    x = 5; /* { dg-error "invalid volatile use of 'x' inside transaction" } */
11
    x += y;
12
    y++;
13
  }
14
  baz(x);
15
}
16
 
17
 
18
volatile int i = 0;
19
 
20
void george()
21
{
22
  __transaction_atomic {
23
   if (i == 2) /* { dg-error "invalid volatile use of 'i' inside transaction" } */
24
     i = 1;
25
  }
26
}

powered by: WebSVN 2.1.0

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