OSDN Git Service

compiler: Give an error if a variable is defined but not used.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / go.test / test / fixedbugs / bug108.go
index 5c7649f..10e406d 100644 (file)
@@ -7,4 +7,5 @@
 package main
 func f() {
        v := 1 << 1025;         // ERROR "overflow|stupid shift"
+       _ = v
 }