source: trunk/testcase/weak/weaksimple.c@ 490

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

very simple testcase (which already found a.out issues).

  • Property cvs2svn:cvs-rev set to 1.1
  • 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#if 0 /* doesn't work :/ Why?!? */
2#pragma weak weakbss
3int weakbss;
4#endif
5
6int weakdata = 1;
7#pragma weak weakdata
8
9#pragma weak weaktext
10int weaktext(void)
11{
12 return -1;
13}
14
15int main()
16{
17 return weaktext() + /*weakbss + */ weakdata;
18}
19
Note: See TracBrowser for help on using the repository browser.