[gdb/testsuite] Fix implicit declaration of printf in gdb.objc/*.m
[binutils-gdb.git] / gdb / testsuite / gdb.objc / nondebug.m
1 #include <stdio.h>
2 #include <objc/Object.h>
3
4 @interface NonDebug: Object
5 {
6 }
7 @end
8 @interface NonDebug2: Object
9 {
10 }
11 @end
12
13 @implementation NonDebug
14
15 - someMethod
16 {
17 printf("method someMethod\n");
18 return self;
19 }
20
21 @end
22 @implementation NonDebug2
23
24 - someMethod
25 {
26 printf("method2 someMethod\n");
27 return self;
28 }
29
30 @end
31
32
33 int main (int argc, const char *argv[])
34 {
35 id obj;
36 obj = [NonDebug new];
37 [obj someMethod];
38 return 0;
39 }