This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libobjc/14382] [libobjc] Calling +initialize on a per category basis
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Mar 2004 15:49:37 -0000
- Subject: [Bug libobjc/14382] [libobjc] Calling +initialize on a per category basis
- References: <20040302123655.14382.d.ayers@inode.at>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-02 15:49 -------
Confirmed, here is a simple testcase:
#include <objc/objc.h>
#include <objc/Object.h>
int i = 0;
@interface A : Object
+initialize;
@end
@implementation A
+initialize
{
printf("A\n");
i++;
}
@end
@interface A(B)
+initialize;
@end
@implementation A(B)
+initialize
{
printf("A(B)\n");
i++;
}
@end
int main()
{
A *b = [A new];
if (i!=2)
abort();
return 0;
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-03-02 15:49:35
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14382