[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGenObjC / debug-info-static-var.m
blobf98f454fe7296be5c2a746fdcd188096dbe60c52
1 // RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm -o - %s | FileCheck %s
2 // Do not emit AT_MIPS_linkage_name for static variable i
4 // CHECK: !DIGlobalVariable(name: "i"
5 // CHECK-NOT:               linkageName:
6 // CHECK-SAME:              ){{$}}
8 @interface A {
10 -(void) foo;
11 @end
13 @implementation A 
14 -(void)foo {
15   static int i = 1;
17 @end