Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for shouldPanic (0.12 sec)

  1. src/sync/atomic/atomic_test.go

    	p := (*uint64)(unsafe.Pointer(&x[1])) // misaligned
    
    	shouldPanic(t, "LoadUint64", func() { LoadUint64(p) })
    	shouldPanic(t, "LoadUint64Method", func() { (*Uint64)(unsafe.Pointer(p)).Load() })
    	shouldPanic(t, "StoreUint64", func() { StoreUint64(p, 1) })
    	shouldPanic(t, "StoreUint64Method", func() { (*Uint64)(unsafe.Pointer(p)).Store(1) })
    	shouldPanic(t, "CompareAndSwapUint64", func() { CompareAndSwapUint64(p, 1, 2) })
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 71.4K bytes
    - Viewed (0)
Back to top