Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
dll/test/cpp_test_library.cpp at develop · OpenSourceEDA/dll · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
OpenSourceEDA
/
dll
Public
forked from
boostorg/dll
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
develop
Breadcrumbs
dll
/
test
/
cpp_test_library.cpp
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
203 lines (142 loc) · 4.96 KB
develop
Breadcrumbs
dll
/
test
/
cpp_test_library.cpp
Copy path
Top
File metadata and controls
Code
Blame
203 lines (142 loc) · 4.96 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
//
Copyright 2016 Klemens Morgenstern
//
Copyright 2017-2021 Antony Polukhin
//
//
Distributed under the Boost Software License, Version 1.0.
//
(See accompanying file LICENSE_1_0.txt
//
or copy at http://www.boost.org/LICENSE_1_0.txt)
//
For more information, see http://www.boost.org
#
include
<
boost/config.hpp
>
#
if
(__cplusplus >= 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201402L)
#
include
<
boost/dll/config.hpp
>
#
include
<
boost/variant.hpp
>
BOOST_SYMBOL_EXPORT
extern
int
unscoped_var;
int
unscoped_var =
42
;
BOOST_SYMBOL_EXPORT
extern
const
double
unscoped_c_var;
const
double
unscoped_c_var =
1.234
;
namespace
some_space
{
BOOST_SYMBOL_EXPORT
extern
double
variable;
double
variable =
0.2
;
BOOST_SYMBOL_EXPORT
const
int
&
scoped_fun
()
{
static
int
x =
0xDEADBEEF
;
return
x;
}
}
BOOST_SYMBOL_EXPORT
void
overloaded
(
const
volatile
int
i)
{
unscoped_var = i;
}
BOOST_SYMBOL_EXPORT
void
overloaded
(
const
double
d)
{
some_space::variable = d;
}
BOOST_SYMBOL_EXPORT
void
use_variant
(boost::variant<
int
,
double
> & v)
{
v =
42
;
}
BOOST_SYMBOL_EXPORT
void
use_variant
(boost::variant<
double
,
int
> & v)
{
v =
3.124
;
}
namespace
some_space
{
BOOST_SYMBOL_EXPORT
extern
int
father_value;
int
father_value =
12
;
struct
BOOST_SYMBOL_EXPORT
some_father
{
some_father
() { father_value =
24
; };
~some_father
() { father_value =
112
; };
};
struct
BOOST_SYMBOL_EXPORT
some_class : some_father
{
static
int
value ;
static
void
set_value
(
const
int
&i);
//
static some_class* dummy();
virtual
double
func
(
double
i,
double
j);
virtual
int
func
(
int
i,
int
j);
int
func
(
int
i,
int
j) volatile;
double
func
(
double
i,
double
j)
const
volatile;
int
mem_val;
int
get
()
const
;
void
set
(
int
i) ;
some_class
();
some_class
(some_class &&);
some_class
(
int
i);
some_class&
operator
=(some_class &&);
virtual
~some_class
();
};
some_class::some_class
(some_class &&){}
some_class& some_class::
operator
=(some_class &&ref) {
return
ref;}
BOOST_SYMBOL_EXPORT
extern
std::
size_t
size_of_some_class;
std::
size_t
size_of_some_class =
sizeof
(some_space::some_class);
extern
"
C
"
BOOST_SYMBOL_EXPORT
const
volatile
some_class* this_;
const
volatile
some_class * this_ =
nullptr
;
int
some_class::value = -
1
;
void
some_class::set_value
(
const
int
&i) {value = i;}
//
some_class* some_class::dummy() {return new some_class();}//so it implements an allocating ctor.
double
some_class::func
(
double
i,
double
j) {this_ =
this
;
return
i*j;}
int
some_class::func
(
int
i,
int
j) {this_ =
this
;
return
i+j;}
int
some_class::func
(
int
i,
int
j) volatile {this_ =
this
;
return
i-j;;}
double
some_class::func
(
double
i,
double
j)
const
volatile {this_ =
this
;
return
i/j;}
int
some_class::get
()
const
{this_ =
this
;
return
mem_val;}
void
some_class::set
(
int
i) {this_ =
this
; mem_val = i;}
some_class::some_class
() { this_ =
this
; value =
23
; mem_val =
123
;}
some_class::some_class
(
int
i) : mem_val(
456
) {this_ =
this
; value = i;}
some_class::~some_class
()
{
value =
0
;
this_ =
this
;
}
}
namespace
space
{
class
BOOST_SYMBOL_EXPORT
my_plugin;
}
namespace
testing
{
namespace
space
{
class
BOOST_SYMBOL_EXPORT
my_plugin {
public:
template
<
typename
Arg>
BOOST_SYMBOL_EXPORT
int
Func
()
const
;
template
<
typename
Arg>
BOOST_SYMBOL_EXPORT
int
Func
();
template
<
typename
Arg>
BOOST_SYMBOL_EXPORT
int
Func2
();
template
<
typename
Arg>
BOOST_SYMBOL_EXPORT
int
AFunc
();
};
template
<
typename
Arg>
BOOST_SYMBOL_EXPORT
int
my_plugin::Func
()
const
{
return
30
; }
template
<
typename
Arg>
BOOST_SYMBOL_EXPORT
int
my_plugin::Func
() {
return
32
; }
template
<
typename
Arg>
BOOST_SYMBOL_EXPORT
int
my_plugin::Func2
() {
return
33
; }
template
<
typename
Arg>
BOOST_SYMBOL_EXPORT
int
my_plugin::AFunc
() {
return
31
; }
template
BOOST_SYMBOL_EXPORT
int
my_plugin::Func<::space::my_plugin>();
template
BOOST_SYMBOL_EXPORT
int
my_plugin::Func2<::space::my_plugin>();
template
BOOST_SYMBOL_EXPORT
int
my_plugin::AFunc<::space::my_plugin>();
}}
namespace
space
{
class
BOOST_SYMBOL_EXPORT
my_plugin {
public:
template
<
typename
Arg>
BOOST_SYMBOL_EXPORT
int
Func
()
const
;
template
<
typename
Arg>
BOOST_SYMBOL_EXPORT
int
Func
();
template
<
typename
Arg>
BOOST_SYMBOL_EXPORT
int
Func2
();
template
<
typename
Arg>
BOOST_SYMBOL_EXPORT
int
AFunc
();
};
template
<
typename
Arg>
BOOST_SYMBOL_EXPORT
int
my_plugin::Func
()
const
{
return
40
; }
template
<
typename
Arg>
BOOST_SYMBOL_EXPORT
int
my_plugin::Func
() {
return
42
; }
template
<
typename
Arg>
BOOST_SYMBOL_EXPORT
int
my_plugin::Func2
() {
return
43
; }
template
<
typename
Arg>
BOOST_SYMBOL_EXPORT
int
my_plugin::AFunc
() {
return
41
; }
template
BOOST_SYMBOL_EXPORT
int
my_plugin::Func<::space::my_plugin>();
template
BOOST_SYMBOL_EXPORT
int
my_plugin::Func2<::space::my_plugin>();
template
BOOST_SYMBOL_EXPORT
int
my_plugin::AFunc<::space::my_plugin>();
}
#
endif
You can’t perform that action at this time.