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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [inline-14.c] - Rev 826

Compare with Previous | Blame | View Log

/* Check that you can't redefine a C99 inline function.  */
/* { dg-do compile } */
/* { dg-options "-std=c99" } */
 
extern inline int func1 (void) /* { dg-message "note: previous definition" } */
{
  return 1;
}
 
inline int func1 (void) /* { dg-error "redefinition" } */
{
  return 1;
}
 
inline int func2 (void) /* { dg-message "note: previous definition" } */
{
  return 2;
}
 
inline int func2 (void) /* { dg-error "redefinition" } */
{
  return 2;
}
 

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.