test(asm): pin the flag-list TEXT shapes against the toolchain
Assisted-by: GLM 5.3 Flash
This commit is contained in:
1 parent
9179d5cc7a
commit
6f3e054bab
4 files changed
+145
-10
No files matched your search
@@ -53,7 +53,10 @@ func TestTextFlagsExpression(t *testing.T) {
|
||||
{"(NOSPLIT|NOFRAME)", []string{"NOSPLIT", "NOFRAME"}, 516},
|
||||
{"NOSPLIT|4", []string{"NOSPLIT"}, 4},
|
||||
{"NOSPLIT&DUPOK", nil, 0},
|
||||
{"$NOSPLIT", []string{"NOSPLIT"}, 4},
|
||||
// The immediate spelling is the toolchain's "expected integer
|
||||
// constant" on the assembly path; the raw view reads nothing from
|
||||
// it and stays quiet.
|
||||
{"$NOSPLIT", nil, 0},
|
||||
} {
|
||||
txt := parseTextHeader(t, "TEXT \u00b7f(SB), "+c.operand+", $0")
|
||||
if !slices.Equal(txt.Flags, c.wantFlag) {
|
||||
|
||||
Reference in new issue
Block a user