diff options
Diffstat (limited to 'test/tsan/pie_test.cc')
-rw-r--r-- | test/tsan/pie_test.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/tsan/pie_test.cc b/test/tsan/pie_test.cc new file mode 100644 index 000000000000..8635f9cd403f --- /dev/null +++ b/test/tsan/pie_test.cc @@ -0,0 +1,12 @@ +// Check if tsan work with PIE binaries. +// RUN: %clang_tsan %s -pie -fpic -o %t && %run %t + +// Some kernels might map PIE segments outside the current segment +// mapping defined for x86 [1]. +// [1] https://git.kernel.org/linus/d1fd836dcf00d2028c700c7e44d2c23404062c90 + +// UNSUPPORTED: x86 + +int main(void) { + return 0; +} |