* g++.dg/other/pragma-re-1.C (p, q): Fix type and remove cast.

From-SVN: r90185
This commit is contained in:
Eric Botcazou 2004-11-06 19:58:02 +01:00 committed by Eric Botcazou
parent 432be03772
commit e78980b724
2 changed files with 6 additions and 2 deletions

View 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.

View File

@ -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;