2013-08-19 11:37:48 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c -emit-llvm -g < %s | FileCheck %s
|
2010-02-10 09:09:50 +08:00
|
|
|
// Test to check that "self" argument is assigned a location.
|
2014-12-16 03:10:08 +08:00
|
|
|
// CHECK: call void @llvm.dbg.declare(metadata %0** %{{[^,]+}}, metadata [[SELF:![0-9]*]], metadata !{{.*}})
|
2015-08-01 02:59:37 +08:00
|
|
|
// CHECK: [[SELF]] = !DILocalVariable(name: "self", arg: 1,
|
2010-02-10 09:09:50 +08:00
|
|
|
|
|
|
|
@interface Foo
|
|
|
|
-(void) Bar: (int)x ;
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@implementation Foo
|
|
|
|
-(void) Bar: (int)x
|
|
|
|
{
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|