mirror of
https://github.com/golang/go
synced 2024-11-25 06:07:58 -07:00
9536480edc
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 #4054. R=golang-dev, fullung, dave, rsc, minux.ma CC=golang-dev https://golang.org/cl/6501101
36 lines
1.7 KiB
Go
36 lines
1.7 KiB
Go
// Copyright 2011 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 cgotest
|
|
|
|
import "testing"
|
|
|
|
// The actual test functions are in non-_test.go files
|
|
// so that they can use cgo (import "C").
|
|
// These wrappers are here for gotest to find.
|
|
|
|
func TestAlign(t *testing.T) { testAlign(t) }
|
|
func TestConst(t *testing.T) { testConst(t) }
|
|
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) }
|
|
func TestCallbackPanicLoop(t *testing.T) { testCallbackPanicLoop(t) }
|
|
func TestCallbackPanicLocked(t *testing.T) { testCallbackPanicLocked(t) }
|
|
func TestZeroArgCallback(t *testing.T) { testZeroArgCallback(t) }
|
|
func TestBlocking(t *testing.T) { testBlocking(t) }
|
|
func Test1328(t *testing.T) { test1328(t) }
|
|
func TestParallelSleep(t *testing.T) { testParallelSleep(t) }
|
|
func TestSetEnv(t *testing.T) { testSetEnv(t) }
|
|
func TestHelpers(t *testing.T) { testHelpers(t) }
|
|
func TestLibgcc(t *testing.T) { testLibgcc(t) }
|
|
func Test1635(t *testing.T) { test1635(t) }
|
|
func TestPrintf(t *testing.T) { testPrintf(t) }
|
|
|
|
func BenchmarkCgoCall(b *testing.B) { benchCgoCall(b) }
|