...
1# Test that a directory with an .s file that has a comment that can't
2# be parsed isn't matched as a go directory. (This was happening because
3# non-go files with unparsable comments were being added to InvalidGoFiles
4# leading the package matching code to think there were Go files in the
5# directory.)
6
7cd bar
8go list ./...
9! stdout .
10cd ..
11
12[short] skip
13
14# Test that an unparsable .s file is completely ignored when its name
15# has build tags that cause it to be filtered out, but produces an error
16# when it is included
17
18env GOARCH=arm64
19env GOOS=linux
20go build ./baz
21
22env GOARCH=amd64
23env GOOS=linux
24! go build ./baz
25
26-- go.mod --
27module example.com/foo
28
29go 1.20
30-- bar/bar.s --
31;/
32-- baz/baz.go --
33package bar
34-- baz/baz_amd64.s --
35;/
View as plain text