diff options
author | Devang Patel <dpatel@apple.com> | 2010-04-29 17:48:37 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-04-29 17:48:37 +0000 |
commit | dfcd0661a1a45976e2f23d14dadc2d3411e4ef2c (patch) | |
tree | 6a87c1fb04e090ecd373f4960a9b7553015df225 /clang/test | |
parent | 3b9ad93a353d7d571b3df847a516825ede0fd4e2 (diff) | |
download | bcm5719-llvm-dfcd0661a1a45976e2f23d14dadc2d3411e4ef2c.tar.gz bcm5719-llvm-dfcd0661a1a45976e2f23d14dadc2d3411e4ef2c.zip |
Use clang::VarDecl name instead of llvm::GlobalVariable name.
llvm::GLobalVariable name may not match user visibile name for function static variables.
llvm-svn: 102644
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CodeGen/2009-10-20-GlobalDebug.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/test/CodeGen/2009-10-20-GlobalDebug.c b/clang/test/CodeGen/2009-10-20-GlobalDebug.c index 99be46996ed..1db37de4bb2 100644 --- a/clang/test/CodeGen/2009-10-20-GlobalDebug.c +++ b/clang/test/CodeGen/2009-10-20-GlobalDebug.c @@ -1,4 +1,8 @@ // RUN: %clang -ccc-host-triple i386-apple-darwin10 -S -g -dA %s -o - | FileCheck %s int global; -// CHECK: asciz "global" ## External Name -int main() { return 0;} +// CHECK: asciz "global" ## External Name +// CHECK: asciz "localstatic" ## External Name +int main() { + static int localstatic; + return 0; +} |