summaryrefslogtreecommitdiff
path: root/libgo/go/sync/xadd_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/sync/xadd_test.go')
-rw-r--r--libgo/go/sync/xadd_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/libgo/go/sync/xadd_test.go b/libgo/go/sync/xadd_test.go
new file mode 100644
index 0000000000..8b2ef76e6b
--- /dev/null
+++ b/libgo/go/sync/xadd_test.go
@@ -0,0 +1,9 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package sync
+
+func Xadd(val *uint32, delta int32) (new uint32) {
+ return xadd(val, delta)
+}