File: pdb-columns.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 (29 lines) | stat: -rw-r--r-- 850 bytes parent folder | download | duplicates (12)
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
RUN: echo 0x140001000 > %t.input
RUN: echo 0x140001030 >> %t.input
RUN: echo 0x140001010 >> %t.input
RUN: echo 0x140001040 >> %t.input
RUN: echo 0x140001050 >> %t.input
RUN: echo 0x140001060 >> %t.input
RUN: echo 0x140001070 >> %t.input
RUN: echo 0x140001080 >> %t.input
RUN:    llvm-symbolizer --obj="%p/Inputs/test-columns.exe" < %t.input \
RUN:    | FileCheck %s

This tests that the symbolizer outputs column info when it is present in the pdb.

CHECK: foo(void)
CHECK-NEXT: test.cpp:11:1
CHECK: {{^private_symbol$}}
CHECK-NEXT: test.cpp:14:1
CHECK: {{^main}}
CHECK-NEXT: test.cpp:16:0
CHECK: {{^foo_cdecl$}}
CHECK-NEXT: test.cpp:25:27
CHECK: {{^foo_stdcall$}}
CHECK-NEXT: test.cpp:26:31
CHECK: {{^foo_fastcall$}}
CHECK-NEXT: test.cpp:27:33
CHECK: {{^foo_vectorcall}}
CHECK-NEXT: test.cpp:28:37
CHECK: NS::Foo::bar(void)
CHECK-NEXT: test.cpp:6:0