File: complex-padding-graphical.test

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,634,792 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (55 lines) | stat: -rw-r--r-- 2,608 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
; REQUIRES: diasdk

; RUN: llvm-pdbutil pretty -classes -class-definitions=layout \
; RUN:     -include-types=Test %p/Inputs/ComplexPaddingTest.pdb > %t

; RUN: FileCheck -input-file=%t %s -check-prefix=DIRECT_VB_ONLY
; RUN: FileCheck -input-file=%t %s -check-prefix=DIRECT_VB_AND_NON_VB
; RUN: FileCheck -input-file=%t %s -check-prefix=INDIRECT_VB
; RUN: FileCheck -input-file=%t %s -check-prefix=INDIRECT_AND_DIRECT_VB


; DIRECT_VB_ONLY:      struct TestIVBBase [sizeof = 16]
; DIRECT_VB_ONLY-NEXT:   : public virtual TestVB {
; DIRECT_VB_ONLY-NEXT:   vbptr +0x00 [sizeof=4]
; DIRECT_VB_ONLY-NEXT:   data +0x04 [sizeof=4] int A
; DIRECT_VB_ONLY-NEXT:   vbase +0x08 [sizeof=8] TestVB
; DIRECT_VB_ONLY-NEXT:     vfptr +0x08 [sizeof=4]
; DIRECT_VB_ONLY-NEXT:     data +0x0c [sizeof=4] int X
; DIRECT_VB_ONLY-NEXT: }

DIRECT_VB_AND_NON_VB:      struct TestVBLayout [sizeof = 24]
DIRECT_VB_AND_NON_VB-NEXT:   : public TestNVB
DIRECT_VB_AND_NON_VB-NEXT:   , public virtual TestVB {
DIRECT_VB_AND_NON_VB-NEXT:   base +0x00 [sizeof=8] TestNVB
DIRECT_VB_AND_NON_VB-NEXT:     vfptr +0x00 [sizeof=4]
DIRECT_VB_AND_NON_VB-NEXT:     data +0x04 [sizeof=4] int Y
DIRECT_VB_AND_NON_VB-NEXT:   vbptr +0x08 [sizeof=4]
DIRECT_VB_AND_NON_VB-NEXT:   data +0x0c [sizeof=4] int Z
DIRECT_VB_AND_NON_VB-NEXT:   vbase +0x10 [sizeof=8] TestVB
DIRECT_VB_AND_NON_VB-NEXT:     vfptr +0x10 [sizeof=4]
DIRECT_VB_AND_NON_VB-NEXT:     data +0x14 [sizeof=4] int X
DIRECT_VB_AND_NON_VB-NEXT: }

INDIRECT_VB:      struct TestIVBDerived [sizeof = 20]
INDIRECT_VB-NEXT:   : public TestIVBBase {
INDIRECT_VB-NEXT:   base +0x00 [sizeof=8] TestIVBBase
INDIRECT_VB-NEXT:     vbptr +0x00 [sizeof=4]
INDIRECT_VB-NEXT:     data +0x04 [sizeof=4] int A
INDIRECT_VB-NEXT:   data +0x08 [sizeof=4] int B
INDIRECT_VB-NEXT:   ivbase +0x0c [sizeof=8] TestVB
INDIRECT_VB-NEXT:     vfptr +0x0c [sizeof=4]
INDIRECT_VB-NEXT:     data +0x10 [sizeof=4] int X
INDIRECT_VB-NEXT: }

INDIRECT_AND_DIRECT_VB:      struct TestIVBMergedDerived [sizeof = 20]
INDIRECT_AND_DIRECT_VB-NEXT:   : public TestIVBBase
INDIRECT_AND_DIRECT_VB-NEXT:   , public virtual TestVB {
INDIRECT_AND_DIRECT_VB-NEXT:   base +0x00 [sizeof=8] TestIVBBase
INDIRECT_AND_DIRECT_VB-NEXT:     vbptr +0x00 [sizeof=4]
INDIRECT_AND_DIRECT_VB-NEXT:     data +0x04 [sizeof=4] int A
INDIRECT_AND_DIRECT_VB-NEXT:   data +0x08 [sizeof=4] int B
INDIRECT_AND_DIRECT_VB-NEXT:   vbase +0x0c [sizeof=8] TestVB
INDIRECT_AND_DIRECT_VB-NEXT:     vfptr +0x0c [sizeof=4]
INDIRECT_AND_DIRECT_VB-NEXT:     data +0x10 [sizeof=4] int X
INDIRECT_AND_DIRECT_VB-NEXT: }