OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [ld/] [testsuite/] [ld-elfweak/] [bar1a.c] - Blame information for rev 117

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 60 khays
#include <stdio.h>
2
 
3
extern int deallocate_foo;
4
 
5
extern int * bar ();
6
extern int * foo ();
7
extern void abort ();
8
extern void foobar ();
9
 
10
void
11
foobar ()
12
{
13
  if (&deallocate_foo != bar () || &deallocate_foo != foo ())
14
    abort ();
15
 
16
  if (deallocate_foo)
17
    printf ("weak deallocate_foo\n");
18
  else
19
    printf ("strong deallocate_foo\n");
20
}
21
 
22
int *
23
bar()
24
{
25
  return &deallocate_foo;
26
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.