summaryrefslogtreecommitdiff
path: root/test/asmhdr.dir/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/asmhdr.dir/main.go')
-rw-r--r--test/asmhdr.dir/main.go12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/asmhdr.dir/main.go b/test/asmhdr.dir/main.go
index 808b5de7bb..4e1813d2ed 100644
--- a/test/asmhdr.dir/main.go
+++ b/test/asmhdr.dir/main.go
@@ -16,12 +16,15 @@ const (
bigInt = 0xffffffffffffffff
stringVal = "test"
+
+ longStringVal = "this_is_a_string_constant_longer_than_seventy_characters_which_used_to_fail_see_issue_50253"
)
var (
- smallIntAsm int64
- bigIntAsm uint64
- stringAsm [len(stringVal)]byte
+ smallIntAsm int64
+ bigIntAsm uint64
+ stringAsm [len(stringVal)]byte
+ longStringAsm [len(longStringVal)]byte
)
type typ struct {
@@ -46,6 +49,9 @@ func main() {
if stringVal != string(stringAsm[:]) {
println("stringVal", stringVal, "!=", string(stringAsm[:]))
}
+ if longStringVal != string(longStringAsm[:]) {
+ println("longStringVal", longStringVal, "!=", string(longStringAsm[:]))
+ }
// We also include boolean consts in go_asm.h, but they're
// defined to be "true" or "false", and it's not clear how to