We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1fcf5f commit f6cb6afCopy full SHA for f6cb6af
src/reflect/intw_avr_test.go
src/reflect/value.go
@@ -1602,6 +1602,16 @@ type stringHeader struct {
1602
len uintptr
1603
}
1604
1605
+// Verify SliceHeader and StringHeader sizes.
1606
+// See https://github.com/tinygo-org/tinygo/pull/4156
1607
+// and https://github.com/tinygo-org/tinygo/issues/1284.
1608
+var (
1609
+ _ [unsafe.Sizeof([]byte{})]byte = [unsafe.Sizeof(SliceHeader{})]byte{}
1610
+ _ [unsafe.Sizeof([]byte{})]byte = [unsafe.Sizeof(sliceHeader{})]byte{}
1611
+ _ [unsafe.Sizeof("")]byte = [unsafe.Sizeof(StringHeader{})]byte{}
1612
+ _ [unsafe.Sizeof("")]byte = [unsafe.Sizeof(stringHeader{})]byte{}
1613
+)
1614
+
1615
type ValueError struct {
1616
Method string
1617
Kind Kind
0 commit comments