diff options
| author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-06 18:58:02 +0000 |
|---|---|---|
| committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-06 18:58:02 +0000 |
| commit | e96c173eb60dc450a8df12a9a2da27d1e6bc7d3a (patch) | |
| tree | 7754aa8c8012e24067ae446a6900c11114dc3aff | |
| parent | 9c770815ec8eb2119eb0c71bd621c2f8b1592f22 (diff) | |
| download | ppe42-gcc-e96c173eb60dc450a8df12a9a2da27d1e6bc7d3a.tar.gz ppe42-gcc-e96c173eb60dc450a8df12a9a2da27d1e6bc7d3a.zip | |
* g++.dg/other/pragma-re-1.C (p, q): Fix type and remove cast.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90185 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
| -rw-r--r-- | 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 22f1c31893a..3b420ea7f28 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 b29ac99ba4e..fce1dc193e7 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; |

