aboutsummaryrefslogtreecommitdiff
path: root/test/recover2.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-06-18 15:46:00 -0700
committerRuss Cox <rsc@golang.org>2010-06-18 15:46:00 -0700
commit21ff75bc0efc34675775168ccae118cd286f904c (patch)
tree40872ae2605d1035840d074ff7d6c1418b9113c4 /test/recover2.go
parent99b23a1e5bba7c02184e7875789e25bac21e153b (diff)
downloadgo-21ff75bc0efc34675775168ccae118cd286f904c.tar.gz
go-21ff75bc0efc34675775168ccae118cd286f904c.zip
complex divide: match C99 implementation
R=iant, ken2, r, r2, ken3 CC=golang-dev https://golang.org/cl/1686044
Diffstat (limited to 'test/recover2.go')
-rw-r--r--test/recover2.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/recover2.go b/test/recover2.go
index a6f75770c9..496909f352 100644
--- a/test/recover2.go
+++ b/test/recover2.go
@@ -81,11 +81,11 @@ func test6() {
}
func test7() {
- if syscall.ARCH == "arm" {
- // ARM doesn't have floating point yet
+ if syscall.ARCH == "arm" || syscall.OS == "nacl" {
+ // ARM doesn't have integer divide trap yet
return
}
- defer mustRecover("complex divide by zero")
- var x, y complex
+ defer mustRecover("divide by zero")
+ var x, y int
println(x / y)
}