From e78980b724dc1ad0689c40f5936c26356033797a Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Sat, 6 Nov 2004 19:58:02 +0100 Subject: [PATCH] * g++.dg/other/pragma-re-1.C (p, q): Fix type and remove cast. From-SVN: r90185 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/other/pragma-re-1.C | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 22f1c31..3b420ea 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2004-11-06 Eric Botcazou + * g++.dg/other/pragma-re-1.C (p, q): Fix type and remove cast. + +2004-11-06 Eric Botcazou + * gcc.c-torture/compile/simd-5.c: Do not XFAIL on SPARC 64-bit. * gcc.c-torture/execute/20020227-1.x: Likewise. * gcc.c-torture/execute/simd-5.x: Remove. diff --git a/gcc/testsuite/g++.dg/other/pragma-re-1.C b/gcc/testsuite/g++.dg/other/pragma-re-1.C index b29ac99..fce1dc1 100644 --- a/gcc/testsuite/g++.dg/other/pragma-re-1.C +++ b/gcc/testsuite/g++.dg/other/pragma-re-1.C @@ -11,10 +11,10 @@ /* This one is expected to work. */ #pragma redefine_extname foo bar extern "C" int foo(void); -void *p = (void *)foo; +int (*p)(void) = foo; /* This one is expected not to work (redefine_extname can only be applied to extern "C" names). */ #pragma redefine_extname baz baq extern int baz(void); -void *q = (void *)baz; +int (*q)(void) = baz; -- 2.7.4