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/] [special/] [20000419-2.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* A static function with a global alias should not get 'defined but
2
   not used' warnings.  Exposed by Linux kernel.  */
3
/* { dg-do compile } */
4
/* { dg-require-alias "" } */
5
/* { dg-options "-Wall" } */
6
 
7
extern void do_something (void);
8
extern void do_something_else (void);
9
 
10
static int
11
init_foobar(void)  /* { dg-bogus "defined but not used" "not used warning" } */
12
{
13
  do_something();
14
  do_something_else();
15
  return 0;
16
}
17
 
18
int init_module(void) __attribute__((alias("init_foobar")));

powered by: WebSVN 2.1.0

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