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.
|
2013-08-20 02:35:25 +08:00
|
|
|
// CHECK: call void @llvm.dbg.declare(metadata !{%0** %{{[^}]+}}}, metadata [[SELF:![0-9]*]])
|
2013-08-19 11:37:48 +08:00
|
|
|
// CHECK: [[SELF]] = {{.*}} ; [ DW_TAG_arg_variable ] [self]
|
2010-02-10 09:09:50 +08:00
|
|
|
|
|
|
|
@interface Foo
|
|
|
|
-(void) Bar: (int)x ;
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@implementation Foo
|
|
|
|
-(void) Bar: (int)x
|
|
|
|
{
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|