Mercurial > hg > CbC > CbC_llvm
annotate clang/test/CodeGenObjC/debug-info-property-class-instance-same-name.m @ 221:79ff65ed7e25
LLVM12 Original
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Jun 2021 19:15:29 +0900 |
parents | |
children |
rev | line source |
---|---|
221 | 1 // RUN: %clang_cc1 -S -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s |
2 | |
3 // Both properties should be emitted as having a class and an instance property | |
4 // with the same name is allowed. | |
5 @interface I1 | |
6 // CHECK: !DIObjCProperty(name: "p1" | |
7 // CHECK-SAME: line: [[@LINE+1]] | |
8 @property int p1; | |
9 // CHECK: !DIObjCProperty(name: "p1" | |
10 // CHECK-SAME: line: [[@LINE+1]] | |
11 @property(class) int p1; | |
12 @end | |
13 | |
14 @implementation I1 | |
15 @synthesize p1; | |
16 @end | |
17 | |
18 void foo(I1 *iptr) {} |