xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/debug-info-static-var.m (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc// RUN: %clang_cc1 -g -emit-llvm -o - %s | FileCheck %s
2f4a2713aSLionel Sambuc// Radar 8801045
3f4a2713aSLionel Sambuc// Do not emit AT_MIPS_linkage_name for static variable i
4f4a2713aSLionel Sambuc
5*0a6a1f1dSLionel Sambuc// CHECK:  !"0x34\00i\00i\00\00{{.*}}"
6f4a2713aSLionel Sambuc
7f4a2713aSLionel Sambuc@interface A {
8f4a2713aSLionel Sambuc}
9f4a2713aSLionel Sambuc-(void) foo;
10f4a2713aSLionel Sambuc@end
11f4a2713aSLionel Sambuc
12f4a2713aSLionel Sambuc@implementation A
13f4a2713aSLionel Sambuc-(void)foo {
14f4a2713aSLionel Sambuc  static int i = 1;
15f4a2713aSLionel Sambuc}
16f4a2713aSLionel Sambuc@end
17f4a2713aSLionel Sambuc
18