summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/special/load-category-1a.m
blob: cdcb7d8291968f196814c533ccd507f515edd1a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010.  */

#include <stdlib.h>
#include <objc/objc.h>

#include "load-category-1.h"

@implementation TestClass2
+ initialize { return self; }
+ load
{
  increase_load_count ();
}
@end

@implementation TestClass1 (Category)
+ load
{
  increase_load_count ();
}
@end