From: Devang Patel Date: Tue, 10 Aug 2010 01:36:24 +0000 (+0000) Subject: There is no need to pubish file static variable's name. Do not rely on this code... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fac68aac1489266397e23926733991cf9a15539;p=clang There is no need to pubish file static variable's name. Do not rely on this code gen bug to check whether debug info is generated for such variables or not. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110640 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/2009-10-20-GlobalDebug.c b/test/CodeGen/2009-10-20-GlobalDebug.c index 1db37de4bb..3c46bea379 100644 --- a/test/CodeGen/2009-10-20-GlobalDebug.c +++ b/test/CodeGen/2009-10-20-GlobalDebug.c @@ -1,7 +1,7 @@ // RUN: %clang -ccc-host-triple i386-apple-darwin10 -S -g -dA %s -o - | FileCheck %s int global; +// CHECK: ascii "localstatic" ## DW_AT_name // CHECK: asciz "global" ## External Name -// CHECK: asciz "localstatic" ## External Name int main() { static int localstatic; return 0;