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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224324 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2014-12-16 07:08:19 +00:00
parent fbdea180c0
commit d0e68dcf17

View File

@ -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}