From: Ian Lance Taylor Date: Thu, 5 Feb 2009 20:54:15 +0000 (-0800) Subject: Rename function to avoid function redefinition error. Remove X-Git-Tag: weekly.2009-11-06~2235 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=58c277955a824942824d5a12b1d28ca34d2e5580;p=gostls13.git Rename function to avoid function redefinition error. Remove .* from regexp since it confuses DejaGNU which runs gcc's testsuite. R=rsc DELTA=3 (0 added, 0 deleted, 3 changed) OCL=24435 CL=24438 --- diff --git a/test/escape1.go b/test/escape1.go index 28b5b1016e..646e4b3519 100644 --- a/test/escape1.go +++ b/test/escape1.go @@ -7,11 +7,11 @@ package main func out_escapes() (x int, p *int) { - p = &x; // ERROR "address.*out parameter" + p = &x; // ERROR "address of out parameter" return; } -func out_escapes() (x int, p *int) { - return 2, &x; // ERROR "address.*out parameter" +func out_escapes_2() (x int, p *int) { + return 2, &x; // ERROR "address of out parameter" }