[llvm-commits] [compiler-rt] r160258 - /compiler-rt/trunk/lib/tsan/go/test.c

Dmitry Vyukov dvyukov at google.com
Mon Jul 16 03:34:57 PDT 2012


Author: dvyukov
Date: Mon Jul 16 05:34:57 2012
New Revision: 160258

URL: http://llvm.org/viewvc/llvm-project?rev=160258&view=rev
Log:
tsan: add missing test for Go runtime

Added:
    compiler-rt/trunk/lib/tsan/go/test.c   (with props)

Added: compiler-rt/trunk/lib/tsan/go/test.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/go/test.c?rev=160258&view=auto
==============================================================================
--- compiler-rt/trunk/lib/tsan/go/test.c (added)
+++ compiler-rt/trunk/lib/tsan/go/test.c Mon Jul 16 05:34:57 2012
@@ -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;
+}

Propchange: compiler-rt/trunk/lib/tsan/go/test.c
------------------------------------------------------------------------------
    svn:eol-style = LF





More information about the llvm-commits mailing list