23 lines
620 B
C++
23 lines
620 B
C++
//===----------- load_shared_lib-so.cc --------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file is a part of ThreadSanitizer (TSan), a race detector.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include <stddef.h>
|
|
|
|
int GLOB_SHARED = 0;
|
|
|
|
extern "C"
|
|
void *write_from_so(void *unused) {
|
|
GLOB_SHARED++;
|
|
return NULL;
|
|
}
|