source: trunk/testcase/weak/weak2-5.c@ 2653

Last change on this file since 2653 was 307, checked in by bird, 23 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
RevLine 
[306]1/* weak external symbol with resolvable default. */
2int bar5 = 5;
3
4extern int foo(void);
[307]5#ifndef __EMX__ /* we don't support defaults */
[306]6#pragma weak foo = foodefault
7
8int foodefault(void)
9{
10 return 11;
11}
[307]12#endif
[306]13
14int foo5(void)
15{
16 return foo();
17}
Note: See TracBrowser for help on using the repository browser.