go source for verification 2026-05-22

This commit is contained in:
2026-05-22 16:44:48 +08:00
commit 3ae432d492
14992 changed files with 3674967 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
//go:build !amd64 && !386
package main
func jump() {
target()
}

View File

@@ -0,0 +1,8 @@
#include "textflag.h"
DATA ·pointer(SB)/4, $·target(SB)
GLOBL ·pointer(SB),RODATA,$4
TEXT ·jump(SB),NOSPLIT,$4
CALL *·pointer(SB)
RET

View File

@@ -0,0 +1,8 @@
#include "textflag.h"
DATA ·pointer(SB)/8, $·target(SB)
GLOBL ·pointer(SB),RODATA,$8
TEXT ·jump(SB),NOSPLIT,$8
CALL *·pointer(SB)
RET

View File

@@ -0,0 +1,5 @@
//go:build amd64 || 386
package main
func jump()

View File

@@ -0,0 +1,14 @@
package main
var called bool
func target() {
called = true
}
func main() {
jump()
if !called {
panic("target not called")
}
}