build: support comments in functions (#41)
This commit is contained in:
16
tests/fmt/fmt.s
Normal file
16
tests/fmt/fmt.s
Normal file
@@ -0,0 +1,16 @@
|
||||
// Code generated by command: go run asm.go -out fmt.s -stubs stub.go. DO NOT EDIT.
|
||||
|
||||
#include "textflag.h"
|
||||
|
||||
// func Formatting()
|
||||
TEXT ·Formatting(SB), NOSPLIT, $0
|
||||
ADDQ R8, R8
|
||||
|
||||
// One comment line between instructions.
|
||||
ADDQ R8, R8
|
||||
|
||||
// Comment before label.
|
||||
label:
|
||||
// Comment after label.
|
||||
ADDQ R8, R8
|
||||
RET
|
||||
Reference in New Issue
Block a user