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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [special/] [20000419-2.c] - Rev 801

Go to most recent revision | Compare with Previous | Blame | View Log

/* A static function with a global alias should not get 'defined but
   not used' warnings.  Exposed by Linux kernel.  */
/* { dg-do compile } */
/* { dg-require-alias "" } */
/* { dg-options "-Wall" } */
 
extern void do_something (void);
extern void do_something_else (void);
 
static int
init_foobar(void)  /* { dg-bogus "defined but not used" "not used warning" } */
{
  do_something();
  do_something_else();
  return 0;
}
 
int init_module(void) __attribute__((alias("init_foobar")));
 

Go to most recent revision | 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.