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

Subversion Repositories openrisc

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

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" } */
3
 
4
#define W(X)    __attribute__((transaction_wrap(X)))
5
void f1(void);
6
void f2(int);
7
int i3;
8
int f7(void);
9
 
10
void g1(void) W(f1);
11
void g2(void) W(f2);    /* { dg-error "is not compatible" } */
12
void g3(void) W(i3);    /* { dg-error "is not a function" } */
13
void g4(void) W(f4);    /* { dg-error "not declared in this scope\|not an identifier" } */
14
void g5(void) W(1);     /* { dg-error "not an identifier" } */
15
void g6(void) W("f1");  /* { dg-error "not an identifier" } */
16
void g7(void) W(f7);    /* { dg-error "is not compatible" } */

powered by: WebSVN 2.1.0

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