summaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.test/test/string_lit.go
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/go.test/test/string_lit.go')
-rw-r--r--gcc/testsuite/go.test/test/string_lit.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/go.test/test/string_lit.go b/gcc/testsuite/go.test/test/string_lit.go
index 457faaa88cd..fea6f553d10 100644
--- a/gcc/testsuite/go.test/test/string_lit.go
+++ b/gcc/testsuite/go.test/test/string_lit.go
@@ -33,6 +33,7 @@ func assert(a, b, c string) {
print("\ta[", i, "] = ", ac, "; b[", i, "] =", bc, "\n")
}
}
+ panic("string_lit")
}
}
@@ -110,7 +111,7 @@ func main() {
r = -1
s = string(r)
assert(s, "\xef\xbf\xbd", "negative rune")
-
+
// the large rune tests again, this time using constants instead of a variable.
// these conversions will be done at compile time.
s = string(0x10ffff) // largest rune value