summaryrefslogtreecommitdiffstats
path: root/src/seastar/cmake/code_tests/Sanitizers_fiber_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/seastar/cmake/code_tests/Sanitizers_fiber_test.cc')
-rw-r--r--src/seastar/cmake/code_tests/Sanitizers_fiber_test.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/seastar/cmake/code_tests/Sanitizers_fiber_test.cc b/src/seastar/cmake/code_tests/Sanitizers_fiber_test.cc
new file mode 100644
index 00000000..9df531f2
--- /dev/null
+++ b/src/seastar/cmake/code_tests/Sanitizers_fiber_test.cc
@@ -0,0 +1,11 @@
+#include <cstddef>
+
+extern "C" {
+ void __sanitizer_start_switch_fiber(void**, const void*, size_t);
+ void __sanitizer_finish_switch_fiber(void*, const void**, size_t*);
+}
+
+int main() {
+ __sanitizer_start_switch_fiber(nullptr, nullptr, 0);
+ __sanitizer_finish_switch_fiber(nullptr, nullptr, nullptr);
+}