]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/dead_strip-initializers/other.cxx
ld64-224.1.tar.gz
[apple/ld64.git] / unit-tests / test-cases / dead_strip-initializers / other.cxx
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