From 2dac24a42b8a3ba11e48fcdd7ef83bd799039176 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 16 Jul 2012 10:34:57 +0000 Subject: tsan: add missing test for Go runtime llvm-svn: 160258 --- compiler-rt/lib/tsan/go/test.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 compiler-rt/lib/tsan/go/test.c (limited to 'compiler-rt/lib/tsan/go/test.c') diff --git a/compiler-rt/lib/tsan/go/test.c b/compiler-rt/lib/tsan/go/test.c new file mode 100644 index 00000000000..c27a94adf58 --- /dev/null +++ b/compiler-rt/lib/tsan/go/test.c @@ -0,0 +1,15 @@ +#include + +void __tsan_init(); +void __tsan_fini(); + +int goCallbackCommentPc(void *pc, char **img, char **rtn, char **file, int *l) { + return 0; +} + +int main(void) { + __tsan_init(); + printf("OK\n"); + __tsan_fini(); + return 0; +} -- cgit v1.2.3