]> git.saurik.com Git - apple/dyld.git/blob - unit-tests/test-cases/dlclose-dylib-terminators/foo.cpp
dyld-750.5.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 }