]> Cypherpunks.ru repositories - gostls13.git/blob - test/fixedbugs/bug518.go
test: add tests that gofrontend failed
[gostls13.git] / test / fixedbugs / bug518.go
1 // errorcheck
2
3 // Copyright 2023 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 // The gofrontend used to accept this.
8
9 package p
10
11 func F2(a int32) bool {
12         return a == C   // ERROR "invalid|incompatible"
13 }
14
15 const C = uint32(34)