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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tm/] [pr51696.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
struct list {
5
  void (*compare)();
6
} *listPtr;
7
 
8
static void (*compare)();
9
 
10
__attribute__((transaction_safe))
11
static void func () {
12
  listPtr->compare(); /* { dg-error "unsafe indirect function call" } */
13
  compare(); /* { dg-error "unsafe function call" } */
14
}

powered by: WebSVN 2.1.0

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