summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-12-16 07:08:19 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-12-16 07:08:19 +0000
commit68c37245d38d1d4d3e587e2e24a49aff4d55b5b4 (patch)
treefcee9bedb5119b969396310ce5803db81f7ef673 /llvm/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll
parentf841bd9fcd7b0f167687d007ea73a137ebfa3d13 (diff)
downloadbcm5719-llvm-68c37245d38d1d4d3e587e2e24a49aff4d55b5b4.tar.gz
bcm5719-llvm-68c37245d38d1d4d3e587e2e24a49aff4d55b5b4.zip
DebugInfo: Update testcase to actually check something
This test was missing a `Debug Info Version` so it's `not grep` was passing vacuously. Update it to CHECK for something useful at the same time so it doesn't bitrot quite so easily in the future. llvm-svn: 224324
Diffstat (limited to 'llvm/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll')
-rw-r--r--llvm/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll b/llvm/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll
index f387a0f9b03..50ad32e1c9e 100644
--- a/llvm/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll
+++ b/llvm/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll
@@ -1,4 +1,4 @@
-; RUN: opt -O3 < %s | llvm-dis | not grep badref
+; RUN: opt -S -O3 < %s | FileCheck %s
; RUN: verify-uselistorder %s
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
@@ -12,6 +12,7 @@ target triple = "x86_64-apple-darwin10.2"
define i32 @main() nounwind readonly {
%diff1 = alloca i64 ; <i64*> [#uses=2]
+; CHECK: call void @llvm.dbg.value(metadata i64 72,
call void @llvm.dbg.declare(metadata i64* %diff1, metadata !0, metadata !{!"0x102"})
store i64 72, i64* %diff1, align 8
%v1 = load %struct.test** @TestArrayPtr, align 8 ; <%struct.test*> [#uses=1]
@@ -33,3 +34,6 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone
!5 = !{!"0x24\00int\000\0032\0032\000\000\005", null, !6} ; [ DW_TAG_base_type ]
!8 = !{!"/d/j/debug-test.c", !"/Volumes/Data/b"}
!9 = !{i32 0}
+
+!llvm.module.flags = !{!10}
+!10 = !{i32 1, !"Debug Info Version", i32 2}
OpenPOWER on IntegriCloud