From 58c277955a824942824d5a12b1d28ca34d2e5580 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 5 Feb 2009 12:54:15 -0800 Subject: [PATCH] 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 --- test/escape1.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" } -- 2.48.1