PowerPC64 dot-sym testsuite fixes
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elfvers / vers4.c
CommitLineData
252b5132
RH
1/*
2 * Testcase to make sure that a versioned symbol definition in an
3 * application correctly defines the version node, if and only if
4 * the actual symbol is exported. This is built both with and without
5 * -export-dynamic.
6 */
0cd9f5f0 7#include <stdio.h>
b9e33f30 8#include "vers.h"
0cd9f5f0
ILT
9
10extern int foo ();
11
252b5132
RH
12int
13bar()
14{
15 return 3;
16}
17
18int
19new_foo()
20{
21 return 1000+bar();
22
23}
24
4e95fbcd 25FUNC_SYMVER(new_foo, foo@@VERS_2.0);
252b5132
RH
26
27int
28main()
29{
30 printf("%d\n", foo());
31 return 0;
32}
This page took 0.974493 seconds and 4 git commands to generate.