Skip to content

Commit e32c5d4

Browse files
author
Alexander Yermolovich
committed
moved repro/source code below test description
1 parent a191595 commit e32c5d4

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

llvm/test/DebugInfo/X86/dwarf5-debug-names-addr-tu-to-non-tu.ll

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@
44

55
;; Test that an entry in the debug names table gets created for a top level DIE when the creation of TU is aborted.
66

7+
;; clang++ -O0 main.cpp -gdwarf-5 -fdebug-types-section -gpubnames -S -emit-llvm -glldb -o main.ll
8+
;; int foo;
9+
;; namespace {
10+
;; struct t1 {};
11+
;; } // namespace
12+
;; template <int *> struct t2 {
13+
;; t1 v1;
14+
;; };
15+
;; struct t3 {
16+
;; t2<&foo> v1;
17+
;; };
18+
;; t3 v1;
19+
720
; CHECK: [[OFFSET:0x[0-9a-f]*]]: DW_TAG_structure_type
821
; CHECK: [[OFFSET1:0x[0-9a-f]*]]: DW_TAG_structure_type
922

@@ -26,19 +39,6 @@
2639
; CHECK-NEXT: DW_IDX_die_offset: [[OFFSET1]]
2740
; CHECK-NEXT: DW_IDX_parent: <parent not indexed>
2841

29-
;; clang++ -O0 main.cpp -gdwarf-5 -fdebug-types-section -gpubnames -S -emit-llvm -glldb -o main.ll
30-
;; int foo;
31-
;; namespace {
32-
;; struct t1 {};
33-
;; } // namespace
34-
;; template <int *> struct t2 {
35-
;; t1 v1;
36-
;; };
37-
;; struct t3 {
38-
;; t2<&foo> v1;
39-
;; };
40-
;; t3 v1;
41-
4242
; ModuleID = 'main.cpp'
4343
source_filename = "main.cpp"
4444
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"

0 commit comments

Comments
 (0)