]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gold/testsuite/ver_matching_def.cc
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / gold / testsuite / ver_matching_def.cc
CommitLineData
09124467
ILT
1// ver_matching_def.cc - test matching rules in version_script.map
2
250d07de 3// Copyright (C) 2007-2021 Free Software Foundation, Inc.
09124467
ILT
4// Written by Cary Coutant <ccoutant@google.com>.
5
6// This file is part of gold.
7
8// This program is free software; you can redistribute it and/or modify
9// it under the terms of the GNU General Public License as published by
10// the Free Software Foundation; either version 3 of the License, or
11// (at your option) any later version.
12
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17
18// You should have received a copy of the GNU General Public License
19// along with this program; if not, write to the Free Software
20// Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
21// MA 02110-1301, USA.
22
23extern "C" {
24void foo() {} // V1
25void foo1() {} // local
26};
27
28void bar() {} // V1
29void bar1() {} // global
30
10600224
ILT
31void baz(int*) {} // V1
32void baz(int*, char) {} // global
33void baz(char*, int) {} // global
34
09124467
ILT
35extern "C" {
36void bar2() {} // V1
37};
38
39namespace myns {
40void blah() {} // V1
41void bip() {} // V1
42
43class Stuff {
44 public:
45 Stuff() {} // V1
46};
47}
48
49class Biz {
50 public:
51 Biz() {} // global
52};
53
54namespace otherns {
55Biz biz; // global
56myns::Stuff stuff; // V2
57};
58
59extern "C" {
60void blaza() {} // V1
61void blaza1() {} // V1
62
63void original_blaza2() {} // V2
64__asm__(".symver original_blaza2,blaza2@@V2"); // overrides script
65
66void bla() {} // global
67void blaz() {} // V2
68void blazb() {} // V2
69
70int globaoeufxstuff = 0; // V1
71int globaoeufostuff = 0; // global
72float sizeof_headers = 50.0; // V1
73};