* g++.dg/other/pragma-re-1.C (p, q): Fix type and remove cast.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Sat, 6 Nov 2004 18:58:02 +0000 (19:58 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 6 Nov 2004 18:58:02 +0000 (18:58 +0000)
From-SVN: r90185

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pragma-re-1.C

index 22f1c31893a16369bc6d3c48f7039677fc9a9c6a..3b420ea7f28c0bcdfb3f797f594b0f997256145f 100644 (file)
@@ -1,3 +1,7 @@
+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.
index b29ac99ba4ee8a346da03c4bfc93b81167478a5b..fce1dc193e73b8c6ea7a2340d4b131debf6f7deb 100644 (file)
 /* 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;