Mercurial > hg > CbC > CbC_llvm
annotate clang/test/CodeGenObjC/2010-02-09-DbgSelf.m @ 180:680fa57a2f20
fix compile errors.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 30 May 2020 17:44:06 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -x objective-c -emit-llvm -debug-info-kind=limited < %s | FileCheck %s |
2 // Test to check that "self" argument is assigned a location. | |
3 // CHECK: call void @llvm.dbg.declare(metadata %0** %{{[^,]+}}, metadata [[SELF:![0-9]*]], metadata !{{.*}}) | |
4 // CHECK: [[SELF]] = !DILocalVariable(name: "self", arg: 1, | |
5 | |
6 @interface Foo | |
7 -(void) Bar: (int)x ; | |
8 @end | |
9 | |
10 | |
11 @implementation Foo | |
12 -(void) Bar: (int)x | |
13 { | |
14 } | |
15 @end | |
16 |