Move the c-torture/noncompile tests to either gcc.dg/cpp or a new
[official-gcc.git] / gcc / testsuite / gcc.dg / 20000419-2.c
blob05e4729572cfeb9dd6ceb35ae5293588cd21e15a
1 /* 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-options "-Wall" } */
6 extern void do_something (void);
7 extern void do_something_else (void);
9 static int
10 init_foobar(void) /* { dg-bogus "defined but not used" "not used warning" } */
12 do_something();
13 do_something_else();
14 return 0;
17 int init_module(void) __attribute__((alias("init_foobar")));