Home | History | Annotate | Download | only in testdata

Lines Matching refs:unsafe

9 	"unsafe"
13 var x unsafe.Pointer
15 x = unsafe.Pointer(y) // ERROR "possible misuse of unsafe.Pointer"
20 x = unsafe.Pointer(uintptr(x) + 1)
21 x = unsafe.Pointer(1 + uintptr(x)) // ERROR "possible misuse of unsafe.Pointer"
22 x = unsafe.Pointer(uintptr(x) + uintptr(x)) // ERROR "possible misuse of unsafe.Pointer"
23 x = unsafe.Pointer(uintptr(x) - 1)
24 x = unsafe.Pointer(1 - uintptr(x)) // ERROR "possible misuse of unsafe.Pointer"
25 x = unsafe.Pointer(uintptr(x) &^ 3)
26 x = unsafe.Pointer(1 &^ uintptr(x)) // ERROR "possible misuse of unsafe.Pointer"
30 x = unsafe.Pointer(v.Pointer())
31 x = unsafe.Pointer(v.UnsafeAddr())
33 x = unsafe.Pointer(s1.Data)
35 x = unsafe.Pointer(s2.Data)
37 x = unsafe.Pointer(s3.Data) // ERROR "possible misuse of unsafe.Pointer"
39 x = unsafe.Pointer(s4.Data) // ERROR "possible misuse of unsafe.Pointer"
43 x = unsafe.Pointer(vv.Pointer()) // ERROR "possible misuse of unsafe.Pointer"
44 x = unsafe.Pointer(vv.UnsafeAddr()) // ERROR "possible misuse of unsafe.Pointer"
46 x = unsafe.Pointer(ss1.Data) // ERROR "possible misuse of unsafe.Pointer"
48 x = unsafe.Pointer(ss2.Data) // ERROR "possible misuse of unsafe.Pointer"