summaryrefslogtreecommitdiff
path: root/lib/tsan/go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2012-07-16 10:34:57 +0000
committerDmitry Vyukov <dvyukov@google.com>2012-07-16 10:34:57 +0000
commit4cce3a525faccf5906440b7efdea317957221e68 (patch)
treedd36168b0f04252eb3a346010c6ffe15d6a68905 /lib/tsan/go
parentb93c3d5badc4066120edf3ed1c515cdd516a8776 (diff)
downloadcompiler-rt-4cce3a525faccf5906440b7efdea317957221e68.tar.gz
compiler-rt-4cce3a525faccf5906440b7efdea317957221e68.tar.bz2
compiler-rt-4cce3a525faccf5906440b7efdea317957221e68.tar.xz
tsan: add missing test for Go runtime
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160258 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/go')
-rw-r--r--lib/tsan/go/test.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/tsan/go/test.c b/lib/tsan/go/test.c
new file mode 100644
index 00000000..c27a94ad
--- /dev/null
+++ b/lib/tsan/go/test.c
@@ -0,0 +1,15 @@
+#include <stdio.h>
+
+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;
+}