forked from Imagelibrary/binutils-gdb
* gdb.objc/nondebug.exp: Test for PR objc/1236.
* gdb.objc/nondebug.m: New file.
This commit is contained in:
38
gdb/testsuite/gdb.objc/nondebug.m
Normal file
38
gdb/testsuite/gdb.objc/nondebug.m
Normal file
@@ -0,0 +1,38 @@
|
||||
#include <objc/Object.h>
|
||||
|
||||
@interface NonDebug: Object
|
||||
{
|
||||
}
|
||||
@end
|
||||
@interface NonDebug2: Object
|
||||
{
|
||||
}
|
||||
@end
|
||||
|
||||
@implementation NonDebug
|
||||
|
||||
- someMethod
|
||||
{
|
||||
printf("method someMethod\n");
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
@implementation NonDebug2
|
||||
|
||||
- someMethod
|
||||
{
|
||||
printf("method2 someMethod\n");
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
int main (int argc, const char *argv[])
|
||||
{
|
||||
id obj;
|
||||
obj = [NonDebug new];
|
||||
[obj someMethod];
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user