2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -debug-info-kind=limited %s -o - | FileCheck %s
|
2010-09-30 07:09:21 +08:00
|
|
|
// self and _cmd are marked as DW_AT_artificial.
|
|
|
|
// myarg is not marked as DW_AT_artificial.
|
|
|
|
|
|
|
|
@interface MyClass {
|
|
|
|
}
|
|
|
|
- (id)init:(int) myarg;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation MyClass
|
|
|
|
- (id) init:(int) myarg
|
|
|
|
{
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
@end
|
2013-02-02 08:34:26 +08:00
|
|
|
|
2015-08-01 02:59:37 +08:00
|
|
|
// CHECK: !DILocalVariable(name: "self", arg: 1,
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: scope: ![[CTOR:[0-9]+]]
|
|
|
|
// CHECK-NOT: line:
|
|
|
|
// CHECK-SAME: flags: DIFlagArtificial | DIFlagObjectPointer{{[,)]}}
|
2015-08-01 02:59:37 +08:00
|
|
|
// CHECK: !DILocalVariable(name: "_cmd", arg: 2,
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: scope: ![[CTOR]]
|
|
|
|
// CHECK-NOT: line:
|
|
|
|
// CHECK-SAME: flags: DIFlagArtificial{{[,)]}}
|
2015-08-01 02:59:37 +08:00
|
|
|
// CHECK: !DILocalVariable(name: "myarg", arg: 3,
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: scope: ![[CTOR]]
|
|
|
|
// CHECK-SAME: line: 11
|
|
|
|
// CHECK-NOT: flags:
|
|
|
|
// CHECK-SAME: ){{$}}
|