| 1 |
// Copyright 2025 The Go Authors. All rights reserved. |
| 2 |
// Use of this source code is governed by a BSD-style |
| 3 |
// license that can be found in the LICENSE file. |
| 4 |
|
| 5 |
package main |
| 6 |
|
| 7 |
import ( |
| 8 |
"golang.org/x/text/language" |
| 9 |
"golang.org/x/text/message" |
| 10 |
) |
| 11 |
|
| 12 |
// Ensures that we can catch any regressions with nil dereferences |
| 13 |
// from const declarations in other files within the same package. |
| 14 |
// See issue https://golang.org/issues/60555 |
| 15 |
func main() { |
| 16 |
p := message.NewPrinter(language.English) |
| 17 |
p.Printf(testMessage) |
| 18 |
} |