~ubuntu-branches/ubuntu/trusty/gnustep-base/trusty

« back to all changes in this revision

Viewing changes to config/config.loadtest.m

Tags: upstream-1.20.0
ImportĀ upstreamĀ versionĀ 1.20.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Dummy NXConstantString impl for so libobjc that doesn't include it */
2
 
/*
3
 
  Copyright (C) 2005 Free Software Foundation
4
 
 
5
 
  Copying and distribution of this file, with or without modification,
6
 
  are permitted in any medium without royalty provided the copyright
7
 
  notice and this notice are preserved.
8
 
*/
9
 
#ifndef NeXT_RUNTIME
10
 
#include <objc/NXConstStr.h>
11
 
@implementation NXConstantString
12
 
@end
13
 
#endif
14
 
 
15
 
#include <objc/Object.h>
16
 
 
17
 
@interface Test : Object
18
 
static int test_result;
 
1
 
 
2
#include "objc-common.g"
 
3
 
 
4
@interface Test : NSObject
19
5
+(void) load;
20
6
+(int) test_result;
21
7
@end
26
12
+(int) test_result {return test_result;}
27
13
@end
28
14
 
29
 
int main (void) {return [Test test_result];}
 
15
int main (void) {
 
16
return [Test test_result];
 
17
}