[lit] Add argument check: --timeout must be non-negative integer
[llvm-core.git] / test / tools / llvm-symbolizer / pdb / pdb.test
blob062c0409895f832b283c9d93e060fb72fabffbf1
1 RUN: echo 0x401380 > %t.input
2 RUN: echo 0x401390 >> %t.input
3 RUN: echo 0x4013A0 >> %t.input
4 RUN: echo 0x4013C0 >> %t.input
5 RUN: echo 0x4013D0 >> %t.input
6 RUN: echo 0x4013E0 >> %t.input
7 RUN: echo 0x4013F0 >> %t.input
8 RUN: echo 0x401420 >> %t.input
9 RUN: llvm-symbolizer -obj="%p/Inputs/test.exe" < %t.input \
10 RUN:    | FileCheck %s
11 RUN: llvm-symbolizer -obj="%p/Inputs/test.exe" -demangle=false < %t.input \
12 RUN:    | FileCheck %s --check-prefix=CHECK-NO-DEMANGLE
14 Subtract ImageBase from all the offsets and run the test again with
15 --relative-address.
17 RUN: %python -c 'import sys;print("\n".join([hex(int(x, 16) - 0x400000) for x in sys.stdin]))' < %t.input \
18 RUN:    | llvm-symbolizer -obj="%p/Inputs/test.exe" -demangle=false --relative-address \
19 RUN:    | FileCheck %s --check-prefix=CHECK-NO-DEMANGLE
21 CHECK: foo(void)
22 CHECK-NEXT: test.cpp:10
23 CHECK: {{^private_symbol$}}
24 CHECK-NEXT: test.cpp:13:0
25 CHECK: {{^main}}
26 CHECK-NEXT: test.cpp:16:0
27 CHECK: {{^foo_cdecl$}}
28 CHECK: {{^foo_stdcall$}}
29 CHECK: {{^foo_fastcall$}}
30 CHECK: {{^foo_vectorcall$}}
31 CHECK: NS::Foo::bar(void)
32 CHECK-NEXT: test.cpp:6:0
34 CHECK-NO-DEMANGLE: ?foo@@YAXXZ
35 CHECK-NO-DEMANGLE-NEXT: test.cpp:10
36 CHECK-NO-DEMANGLE: private_symbol
37 CHECK-NO-DEMANGLE-NEXT: test.cpp:13
38 CHECK-NO-DEMANGLE: _main
39 CHECK-NO-DEMANGLE-NEXT: test.cpp:16
40 CHECK-NO-DEMANGLE: _foo_cdecl
41 CHECK-NO-DEMANGLE: _foo_stdcall@0
42 CHECK-NO-DEMANGLE: @foo_fastcall@0
43 CHECK-NO-DEMANGLE: foo_vectorcall@@0
44 CHECK-NO-DEMANGLE: ?bar@Foo@NS@@QAEXXZ
45 CHECK-NO-DEMANGLE-NEXT: test.cpp:6