Initial commit: Go 1.23 release state

This commit is contained in:
Vorapol Rinsatitnon
2024-09-21 23:49:08 +10:00
commit 17cd57a668
13231 changed files with 3114330 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")
}
}