summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/2009-10-20-GlobalDebug.c
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-10-27 07:11:43 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-10-27 07:11:43 +0000
commitb25abd1a5435b460deb35bc0a04c5aad1df24bd6 (patch)
tree5f13ae8f5f563356db53715a4b9d5fad8d88a64e /clang/test/CodeGen/2009-10-20-GlobalDebug.c
parentd59c0cac6ca1c5ced89588926fb2b1345a8ff682 (diff)
downloadbcm5719-llvm-b25abd1a5435b460deb35bc0a04c5aad1df24bd6.tar.gz
bcm5719-llvm-b25abd1a5435b460deb35bc0a04c5aad1df24bd6.zip
Move these test from checking assembly to checking LLVM IR. Should fix fallout
from r143097. llvm-svn: 143098
Diffstat (limited to 'clang/test/CodeGen/2009-10-20-GlobalDebug.c')
-rw-r--r--clang/test/CodeGen/2009-10-20-GlobalDebug.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/test/CodeGen/2009-10-20-GlobalDebug.c b/clang/test/CodeGen/2009-10-20-GlobalDebug.c
index 42f020e39e8..6f329d5368c 100644
--- a/clang/test/CodeGen/2009-10-20-GlobalDebug.c
+++ b/clang/test/CodeGen/2009-10-20-GlobalDebug.c
@@ -1,9 +1,10 @@
// REQUIRES: x86-registered-target
-// RUN: %clang -ccc-host-triple i386-apple-darwin10 -S -g -dA %s -o - | FileCheck %s
+// RUN: %clang -ccc-host-triple i386-apple-darwin10 -flto -S -g %s -o - | FileCheck %s
int global;
-// CHECK: ascii "localstatic" ## DW_AT_name
-// CHECK: asciz "global" ## External Name
int main() {
static int localstatic;
return 0;
}
+
+// CHECK: !14 = metadata !{i32 720948, i32 0, metadata !5, metadata !"localstatic", metadata !"localstatic", metadata !"", metadata !6, i32 5, metadata !9, i32 1, i32 1, i32* @main.localstatic} ; [ DW_TAG_variable ]
+// CHECK: !15 = metadata !{i32 720948, i32 0, null, metadata !"global", metadata !"global", metadata !"", metadata !6, i32 3, metadata !9, i32 0, i32 1, i32* @global} ; [ DW_TAG_variable ]
OpenPOWER on IntegriCloud