1// RUN: %clangxx -c -o %t %s
2// RUN: %llvm_jitlink %t
3//
4// REQUIRES: system-darwin && host-arch-compatible
5
6static int x = 1;
7
8class Init {
9public:
10 Init() { x = 0; }
11};
12
13static Init I;
14
15int main(int argc, char *argv[]) {
16 return x;
17}
18

source code of compiler-rt/test/orc/TestCases/Darwin/Generic/trivial-cxx-constructor.cpp