source: branches/libc-0.6/testcase/weak/weak2-5.c@ 3783

Last change on this file since 3783 was 307, checked in by bird, 22 years ago

Fixing, confirmed on linux.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 253 bytes
Line 
1/* weak external symbol with resolvable default. */
2int bar5 = 5;
3
4extern int foo(void);
5#ifndef __EMX__ /* we don't support defaults */
6#pragma weak foo = foodefault
7
8int foodefault(void)
9{
10 return 11;
11}
12#endif
13
14int foo5(void)
15{
16 return foo();
17}
Note: See TracBrowser for help on using the repository browser.