OSDN Git Service

Update to current Go testsuite.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / go.test / test / fixedbugs / bug340.go
index af72513..34cc013 100644 (file)
@@ -10,8 +10,8 @@ package main
 
 func main() {
        var x interface{}
-       switch t := x.(type) { // GC_ERROR "0 is not a type"
-       case 0:         // GCCGO_ERROR "expected type"
-               t.x = 1 // ERROR "type interface \{ \}|reference to undefined field or method"
+       switch t := x.(type) {
+       case 0:         // ERROR "type"
+               t.x = 1 // ERROR "type interface \{\}|reference to undefined field or method"
        }
 }