Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / special / 20000419-2.c
blob4a228eb1ae9dc0e440a9bb1ce0848edde61c0603
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-require-alias "" } */
5 /* { dg-options "-Wall" } */
7 extern void do_something (void);
8 extern void do_something_else (void);
10 static int
11 init_foobar(void) /* { dg-bogus "defined but not used" "not used warning" } */
13 do_something();
14 do_something_else();
15 return 0;
18 int init_module(void) __attribute__((alias("init_foobar")));