llvm.org GIT mirror llvm / da795f8
A testcase! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82176 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 10 years ago
1 changed file(s) with 23 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s -disable-output
1
2 define i32 @foo() nounwind ssp {
3 entry:
4 %retval = alloca i32 ; [#uses=2]
5 call void @llvm.dbg.func.start(metadata !0)
6 store i32 42, i32* %retval, dbg !3
7 br label %0, dbg !3
8
9 ;
10 call void @llvm.dbg.region.end(metadata !0)
11 %1 = load i32* %retval, dbg !3 ; [#uses=1]
12 ret i32 %1, dbg !3
13 }
14
15 declare void @llvm.dbg.func.start(metadata) nounwind readnone
16
17 declare void @llvm.dbg.region.end(metadata) nounwind readnone
18
19 !0 = metadata !{i32 458798, i32 0, metadata !1, metadata !"foo", metadata !"foo", metadata !"foo", metadata !1, i32 1, metadata !2, i1 false, i1 true}
20 !1 = metadata !{i32 458769, i32 0, i32 12, metadata !"foo.c", metadata !"/tmp", metadata !"clang 1.0", i1 true, i1 false, metadata !"", i32 0}
21 !2 = metadata !{i32 458788, metadata !1, metadata !"int", metadata !1, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5}
22 !3 = metadata !{i32 1, i32 13, metadata !1, metadata !1}