From Andrew Chatham and Craig Silverstein: Add support for version
[deliverable/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
3// Copyright 2007 Free Software Foundation, Inc.
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
31extern "C" {
32void bar2() {} // V1
33};
34
35namespace myns {
36void blah() {} // V1
37void bip() {} // V1
38
39class Stuff {
40 public:
41 Stuff() {} // V1
42};
43}
44
45class Biz {
46 public:
47 Biz() {} // global
48};
49
50namespace otherns {
51Biz biz; // global
52myns::Stuff stuff; // V2
53};
54
55extern "C" {
56void blaza() {} // V1
57void blaza1() {} // V1
58
59void original_blaza2() {} // V2
60__asm__(".symver original_blaza2,blaza2@@V2"); // overrides script
61
62void bla() {} // global
63void blaz() {} // V2
64void blazb() {} // V2
65
66int globaoeufxstuff = 0; // V1
67int globaoeufostuff = 0; // global
68float sizeof_headers = 50.0; // V1
69};
This page took 0.025035 seconds and 4 git commands to generate.