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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [ld/] [testsuite/] [ld-elfvers/] [vers9.c] - Blame information for rev 184

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

Line No. Rev Author Line
1 58 khays
/*
2
 * Testcase to verify that reference to foo@BAR and a definition of foo@@BAR
3
 * are not treated as a multiple def.
4
 */
5
#include "vers.h"
6
 
7
const char * bar1 = "asdf";
8
const char * bar2 = "asdf";
9
 
10
extern int old_foo1();
11
 
12
int
13
bar()
14
{
15
        return 3;
16
}
17
 
18
int
19
original_foo()
20
{
21
        return 1+bar();
22
 
23
}
24
 
25
int
26
old_foo()
27
{
28
        return 10+bar();
29
 
30
}
31
 
32
int
33
new_foo()
34
{
35
        return 1000+bar();
36
 
37
}
38
 
39
int
40
main()
41
{
42
  old_foo1();
43
  return 0;
44
}
45
 
46
SYMVER(original_foo, foo@);
47
SYMVER(old_foo, foo@VERS_1.1);
48
SYMVER(old_foo1, foo@VERS_1.2);
49
SYMVER(new_foo, foo@@VERS_1.2);

powered by: WebSVN 2.1.0

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