Files
clang-p2996/clang/test/CodeGenObjC/debug-info-static-var.m
David Blaikie bf18725d11 Change this to an IR test instead of an assembly test (as per comment in r171134).
This makes the test not dependent on LLVM & won't vary/break based on LLVM
codegen related changes. Appropriately testing at the Clang level what was
fixed at the Clang level originally (in r124210).

llvm-svn: 171175
2012-12-28 01:16:31 +00:00

18 lines
282 B
Objective-C

// 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 !"i", metadata !"i", metadata !""
@interface A {
}
-(void) foo;
@end
@implementation A
-(void)foo {
static int i = 1;
}
@end