]>
git.saurik.com Git - apple/ld64.git/blame - ld64-134.9/unit-tests/test-cases/dead_strip-initializers/other.cxx
Commit | Line | Data |
b1f7435d A |
1 | |
2 | extern "C" int ctr(); |
3 | extern "C" void dtr(); |
4 | |
5 | class Foo |
6 | { |
7 | public: |
8 | Foo() : field(ctr()) { } |
9 | ~Foo() { dtr(); } |
10 | private: |
11 | int field; |
12 | }; |
13 | |
14 | |
15 | Foo f1; |
16 | Foo f2; |
17 | |
18 | |