1// Check if tsan work with PIE binaries.
2// RUN: %clang_tsan %s -pie -fpic -o %t && %run %t
3
4// Some kernels might map PIE segments outside the current segment
5// mapping defined for x86 [1].
6// [1] https://git.kernel.org/linus/d1fd836dcf00d2028c700c7e44d2c23404062c90
7
8// UNSUPPORTED: x86
9
10int main(void) {
11  return 0;
12}
13