summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/debug-info-static-var.m
blob: 45f9d82e8083cfcff89e66d15c8f1d5cddb33fff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang_cc1 -g -emit-llvm -o - %s | FileCheck %s
// Radar 8801045
// Do not emit AT_MIPS_linkage_name for static variable i

// CHECK: metadata !{metadata !"0x34\00i\00i\00\00{{.*}}"

@interface A {
}
-(void) foo;
@end

@implementation A 
-(void)foo {
  static int i = 1;
}
@end

OpenPOWER on IntegriCloud