From 68c37245d38d1d4d3e587e2e24a49aff4d55b5b4 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Tue, 16 Dec 2014 07:08:19 +0000 Subject: [PATCH] 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 --- llvm/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/llvm/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll b/llvm/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll index f387a0f9..50ad32e 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 ; [#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} -- 2.7.4