projects
/
apple
/
dyld.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
dyld-733.6.tar.gz
[apple/dyld.git]
/
unit-tests
/
test-cases
/
dlclose-dylib-terminators
/
foo.cpp
1
2
extern
void
bar
();
3
4
5
6
class
A
{
7
public
:
8
A
() {
bar
(); }
9
~
A
() {
bar
(); }
10
};
11
12
13
// Create global object which will have its destructor run when
14
// this dylib is unloaded. The destructor will call into libbar,
15
// so libbar.dylib can't be unloaded before this dylib.
16
A a
;
17
18
19
20
21
void
foo
()
22
{
23
}