summaryrefslogtreecommitdiff
path: root/misc/cgo/test/cgo_test.go
diff options
context:
space:
mode:
authorJoel Sing <jsing@google.com>2012-09-20 13:20:33 +1000
committerJoel Sing <jsing@google.com>2012-09-20 13:20:33 +1000
commit7ffb1c77ca26a4fed16ccaf582c894c6e9c08a2f (patch)
tree45f253974f281cc91306d7903139674724100a1d /misc/cgo/test/cgo_test.go
parent51075a1aead08a27afd9b88dd9cded2c95ee9639 (diff)
downloadgo-7ffb1c77ca26a4fed16ccaf582c894c6e9c08a2f.tar.gz
cgo: process DWARF info even when debug data is used for value
Always process the DWARF info, even when the const value is determined using the debug data block. This ensures that the injected enum is removed and future loads of the same constant do not trigger inconsistent definitions. Add tests for issues 2470 and 4054. Fixes issue 4054. R=golang-dev, fullung, dave, rsc, minux.ma CC=golang-dev http://codereview.appspot.com/6501101
Diffstat (limited to 'misc/cgo/test/cgo_test.go')
-rw-r--r--misc/cgo/test/cgo_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/cgo/test/cgo_test.go b/misc/cgo/test/cgo_test.go
index c3c35b53c..3b866290f 100644
--- a/misc/cgo/test/cgo_test.go
+++ b/misc/cgo/test/cgo_test.go
@@ -16,6 +16,7 @@ func TestEnum(t *testing.T) { testEnum(t) }
func TestAtol(t *testing.T) { testAtol(t) }
func TestErrno(t *testing.T) { testErrno(t) }
func TestMultipleAssign(t *testing.T) { testMultipleAssign(t) }
+func TestUnsignedInt(t *testing.T) { testUnsignedInt(t) }
func TestCallback(t *testing.T) { testCallback(t) }
func TestCallbackGC(t *testing.T) { testCallbackGC(t) }
func TestCallbackPanic(t *testing.T) { testCallbackPanic(t) }