~terry.guo/+junk/xbinutils

« back to all changes in this revision

Viewing changes to src/binutils/ld/testsuite/ld-elfweak/main.c

  • Committer: Terry Guo
  • Date: 2012-09-05 06:50:40 UTC
  • Revision ID: terry.guo@arm.com-20120905065040-430c6mhm9b11a6r6
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
 
 
3
#pragma weak foo
 
4
 
 
5
extern void foo ();
 
6
extern void foobar ();
 
7
 
 
8
void
 
9
foo ()
 
10
{
 
11
  printf ("weak foo\n");
 
12
}
 
13
 
 
14
int
 
15
main ()
 
16
{
 
17
  foobar ();
 
18
  return 0;
 
19
}