aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2004-11-06 19:58:02 +0100
committerEric Botcazou <ebotcazou@gcc.gnu.org>2004-11-06 18:58:02 +0000
commite78980b724dc1ad0689c40f5936c26356033797a (patch)
tree7754aa8c8012e24067ae446a6900c11114dc3aff /gcc
parent432be037726df4531d105bb021dff268c92b0884 (diff)
downloadgcc-e78980b724dc1ad0689c40f5936c26356033797a.zip
gcc-e78980b724dc1ad0689c40f5936c26356033797a.tar.gz
gcc-e78980b724dc1ad0689c40f5936c26356033797a.tar.bz2
* g++.dg/other/pragma-re-1.C (p, q): Fix type and remove cast.
From-SVN: r90185
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.dg/other/pragma-re-1.C4
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 <ebotcazou@libertysurf.fr>
+ * g++.dg/other/pragma-re-1.C (p, q): Fix type and remove cast.
+
+2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
+
* 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;