view gcc/testsuite/gcc.dg/tm/wrap-2.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-fgnu-tm" } */

#define W(X)	__attribute__((transaction_wrap(X)))
void f1(void);
void f2(int);
int i3;
int f7(void);

void g1(void) W(f1);
void g2(void) W(f2);	/* { dg-error "is not compatible" } */
void g3(void) W(i3);	/* { dg-error "is not a function" } */
void g4(void) W(f4);	/* { dg-error "undeclared" } */
void g5(void) W(1);	/* { dg-error "not an identifier" } */
void g6(void) W("f1");	/* { dg-error "not an identifier" } */
void g7(void) W(f7);	/* { dg-error "is not compatible" } */