2009-11-03 20:06:07 +01:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
|
|
|
|
2013-01-05 22:39:33 +01:00
|
|
|
!dbg = !{!0}
|
2013-03-28 03:44:59 +01:00
|
|
|
!0 = metadata !{i32 786478, metadata !1, metadata !"bar", metadata !"bar", metadata !"_ZN3foo3barEv", metadata !1, i32 3, metadata !2, i1 false, i1 false, i32 0, i32 0, null, i32 258, i1 false, null, null, i32 0, metadata !1, i32 3} ; [ DW_TAG_subprogram ]
|
|
|
|
!1 = metadata !{i32 41, metadata !4} ; [ DW_TAG_file_type ]
|
|
|
|
!2 = metadata !{i32 21, metadata !1, metadata !"", metadata !1, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !3, i32 0, null} ; [ DW_TAG_subroutine_type ]
|
2013-03-11 23:37:40 +01:00
|
|
|
!3 = metadata !{null}
|
2013-03-17 22:13:55 +01:00
|
|
|
!4 = metadata !{metadata !"/foo", metadata !"bar.cpp"}
|
2009-11-03 20:06:07 +01:00
|
|
|
|
|
|
|
define <{i32, i32}> @f1() {
|
2013-01-05 22:39:33 +01:00
|
|
|
; CHECK: !dbgx !1
|
|
|
|
%r = insertvalue <{ i32, i32 }> zeroinitializer, i32 4, 1, !dbgx !1
|
|
|
|
; CHECK: !dbgx !1
|
|
|
|
%e = extractvalue <{ i32, i32 }> %r, 0, !dbgx !1
|
2009-11-03 20:06:07 +01:00
|
|
|
ret <{ i32, i32 }> %r
|
|
|
|
}
|
2013-01-05 22:39:33 +01:00
|
|
|
|
|
|
|
; CHECK: [protected]
|