This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[PATCH] Fix g++.dg/lookup/java?.C
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>, java-patches at gcc dot gnu dot org
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>
- Date: Sat, 17 Apr 2004 16:13:24 -0400
- Subject: [PATCH] Fix g++.dg/lookup/java?.C
When the change for _Jv_AllocObject was committed, the testcases
in C++ testsuite were forgotten to be updated, I committed the
following patch to fix the testcase.
Thanks,
Andrew Pinski
ChangeLog:
2004-04-17 Andrew Pinski <pinskia@physics.uc.edu>
* g++.dg/lookup/java1.C: Update for chage of
_Jv_AllocObject.
* g++.dg/lookup/java2.C: Likewise.
Patch:
Index: g++.dg/lookup/java1.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/lookup/java1.C,v
retrieving revision 1.2
diff -u -p -r1.2 java1.C
--- g++.dg/lookup/java1.C 23 Dec 2003 22:41:27 -0000 1.2
+++ g++.dg/lookup/java1.C 17 Apr 2004 20:13:11 -0000
@@ -45,7 +45,7 @@ void Bar1(void)
* Step 2: constructor declaration
*/
-extern "C" jobject _Jv_AllocObject (jclass, jint)
__attribute__((__malloc__));
+extern "C" jobject _Jv_AllocObject (jclass)
__attribute__((__malloc__));
void Bar2(void)
{
Index: g++.dg/lookup/java2.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/lookup/java2.C,v
retrieving revision 1.2
diff -u -p -r1.2 java2.C
--- g++.dg/lookup/java2.C 23 Dec 2003 22:41:27 -0000 1.2
+++ g++.dg/lookup/java2.C 17 Apr 2004 20:13:11 -0000
@@ -37,7 +37,7 @@ public:
* function, so we need to test here if it works with a normal
declaration.
*/
-extern "C" jobject _Jv_AllocObject (jclass, jint)
__attribute__((__malloc__));
+extern "C" jobject _Jv_AllocObject (jclass)
__attribute__((__malloc__));
extern "C" void _Jv_Throw (jthrowable) __attribute__ ((__noreturn__));
void Bar4(void)