OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
compiler: Give an error if a variable is defined but not used.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
go.test
/
test
/
fixedbugs
/
bug108.go
diff --git
a/gcc/testsuite/go.test/test/fixedbugs/bug108.go
b/gcc/testsuite/go.test/test/fixedbugs/bug108.go
index
5c7649f
..
10e406d
100644
(file)
--- a/
gcc/testsuite/go.test/test/fixedbugs/bug108.go
+++ b/
gcc/testsuite/go.test/test/fixedbugs/bug108.go
@@
-7,4
+7,5
@@
package main
func f() {
v := 1 << 1025; // ERROR "overflow|stupid shift"
+ _ = v
}