aboutsummaryrefslogtreecommitdiff
path: root/lib/asan/lit_tests/TestCases/SharedLibs/init-order-dlopen-so.cc
blob: dc097a520d03664160a4a0f67243e4f90af775e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
#include <unistd.h>

extern "C" void inc_global();

int slow_init() {
  sleep(1);
  inc_global();
  return 42;
}

int slowly_init_glob = slow_init();