| 1 |
This test checks that formatting includes generated files too |
| 2 |
(reversing https://go.dev/cl/365295 to address issue #49555). |
| 3 |
|
| 4 |
See https://github.com/golang/go/issues/73959. |
| 5 |
|
| 6 |
-- flags -- |
| 7 |
-ignore_extra_diags |
| 8 |
|
| 9 |
-- go.mod -- |
| 10 |
module example.com |
| 11 |
go 1.21 |
| 12 |
|
| 13 |
-- a/a.go -- |
| 14 |
// Code generated by me. DO NOT EDIT. |
| 15 |
|
| 16 |
package a; import "fmt"; func main() { fmt.Println("hello") } |
| 17 |
|
| 18 |
//@format(out) |
| 19 |
|
| 20 |
-- @out -- |
| 21 |
// Code generated by me. DO NOT EDIT. |
| 22 |
|
| 23 |
package a |
| 24 |
|
| 25 |
import "fmt" |
| 26 |
|
| 27 |
func main() { fmt.Println("hello") } |
| 28 |
|
| 29 |
//@format(out) |