summaryrefslogtreecommitdiff
path: root/test/assign.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2009-05-31 11:18:52 -0700
committerIan Lance Taylor <iant@golang.org>2009-05-31 11:18:52 -0700
commit6dce1d396d44b1c98c1e4fb0ed845316d21e5d0f (patch)
tree37c3a8cf21c3d5e52a192be9cc4ff4237ce273b5 /test/assign.go
parent868acd136669a347f6d7b4bc7fc9726c4e10f46b (diff)
downloadgo-6dce1d396d44b1c98c1e4fb0ed845316d21e5d0f.tar.gz
Adjust expected errors to work with gccgo.
The change to assign.go is because the gcc testsuite fails to handle .* in a normal way: it matches against the entire compiler output, not just a single line. assign.go:15:6: error: incompatible types in assignment (implicit assignment of 'sync.Mutex' hidden field 'key') assign.go:19:6: error: incompatible types in assignment (implicit assignment of 'sync.Mutex' hidden field 'key') assign.go:23:6: error: incompatible types in assignment (implicit assignment of 'sync.Mutex' hidden field 'key') assign.go:27:6: error: incompatible types in assignment (implicit assignment of 'sync.Mutex' hidden field 'key') chan/perm.go:14:5: error: incompatible types in assignment chan/perm.go:15:5: error: incompatible types in assignment chan/perm.go:16:6: error: incompatible types in assignment chan/perm.go:17:6: error: incompatible types in assignment chan/perm.go:24:7: error: invalid send on receive-only channel chan/perm.go:25:12: error: invalid send on receive-only channel chan/perm.go:31:4: error: invalid receive on send-only channel chan/perm.go:32:9: error: invalid receive on send-only channel chan/perm.go:38:2: error: invalid send on receive-only channel chan/perm.go:42:2: error: invalid receive on send-only channel initializerr.go:14:17: error: reference to undefined variable 'X' initializerr.go:14:19: error: mixture of field and value initializers initializerr.go:15:26: error: duplicate value for field 'Y' initializerr.go:16:10: error: too many values in struct composite literal initializerr.go:18:19: error: index expression is not integer constant initializerr.go:17:11: error: too many elements in composite literal R=rsc DELTA=12 (0 added, 0 deleted, 12 changed) OCL=29657 CL=29665
Diffstat (limited to 'test/assign.go')
-rw-r--r--test/assign.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/assign.go b/test/assign.go
index a98b7b75a..9fe9ea079 100644
--- a/test/assign.go
+++ b/test/assign.go
@@ -16,18 +16,18 @@ type T struct {
func main() {
{
var x, y sync.Mutex;
- x = y; // ERROR "assignment.*Mutex"
+ x = y; // ERROR "assignment\[ -~\]*Mutex"
}
{
var x, y T;
- x = y; // ERROR "assignment.*Mutex"
+ x = y; // ERROR "assignment\[ -~\]*Mutex"
}
{
var x, y [2]sync.Mutex;
- x = y; // ERROR "assignment.*Mutex"
+ x = y; // ERROR "assignment\[ -~\]*Mutex"
}
{
var x, y [2]T;
- x = y; // ERROR "assignment.*Mutex"
+ x = y; // ERROR "assignment\[ -~\]*Mutex"
}
}