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

Subversion Repositories open8_urisc

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

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

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

powered by: WebSVN 2.1.0

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