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-04-30 00:40:08 +08:00
|
|
|
// CHECK: [[SELF]] = !DILocalVariable(tag: DW_TAG_arg_variable, name: "self"
|
2010-02-10 09:09:50 +08:00
|
|
|
|
|
|
|
@interface Foo
|
|
|
|
-(void) Bar: (int)x ;
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@implementation Foo
|
|
|
|
-(void) Bar: (int)x
|
|
|
|
{
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|