]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: handle another Clang DWARF quirk
authorMatthew Dempsky <mdempsky@google.com>
Wed, 25 Nov 2015 20:40:43 +0000 (12:40 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 25 Nov 2015 21:13:41 +0000 (21:13 +0000)
commitde640d369d69a53b85c27cd80d716c157aa23e74
tree3cb35c00f8ca4d7dd188d1936eef073cdff71b9a
parentc7a34031400967328267df8bc54b20ce4124eb83
cmd/cgo: handle another Clang DWARF quirk

Without the fix:

    $ CC=clang-3.5 ./test.bash
    misc/cgo/errors/test.bash: BUG: expected error output to contain "C.ushort" but saw:
    # command-line-arguments
    ./issue13129.go:13: cannot use int(0) (type int) as type C.unsignedshort in assignment

Fixes #13129.

Change-Id: I2c019d2d000f5bfa3e33c477e533aff97031a84f
Reviewed-on: https://go-review.googlesource.com/17207
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
misc/cgo/errors/issue13129.go [new file with mode: 0644]
misc/cgo/errors/test.bash
src/cmd/cgo/gcc.go