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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [inline-11.c] - Rev 298

Compare with Previous | Blame | View Log

/* Test misuses of inline.  */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */
 
/* These should perhaps be hard errors, but are pedwarns at
   present.  */
 
inline int a; /* { dg-warning "variable 'a' declared 'inline'" } */
inline int (*b)(void); /* { dg-warning "variable 'b' declared 'inline'" } */
typedef inline void c(void); /* { dg-warning "typedef 'c' declared 'inline'" } */
typedef inline int d; /* { dg-warning "typedef 'd' declared 'inline'" } */
void e(inline int f(void)); /* { dg-warning "parameter 'f' declared 'inline'" } */
void g(inline int(void)); /* { dg-warning "parameter '\\({anonymous}\\)' declared 'inline'" } */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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