You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
240 B

  1. package _generated
  2. import (
  3. "testing"
  4. )
  5. // Issue #191: panic in unsafe.UnsafeString()
  6. func TestIssue191(t *testing.T) {
  7. b := []byte{0x81, 0xa0, 0xa0}
  8. var i Issue191
  9. _, err := (&i).UnmarshalMsg(b)
  10. if err != nil {
  11. t.Error(err)
  12. }
  13. }