- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestLFStack (0.09 sec)
-
src/runtime/lfstack_test.go
} func fromMyNode(node *MyNode) *LFNode { return (*LFNode)(unsafe.Pointer(node)) } func toMyNode(node *LFNode) *MyNode { return (*MyNode)(unsafe.Pointer(node)) } var global any func TestLFStack(t *testing.T) { stack := new(uint64) global = stack // force heap allocation // Check the stack is initially empty. if LFStackPop(stack) != nil { t.Fatalf("stack is not empty") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 17 23:12:04 UTC 2022 - 2.7K bytes - Viewed (0)