1; REQUIRES: diasdk
2
3; RUN: llvm-pdbutil pretty -all -class-recurse-depth=1 \
4; RUN:   %p/Inputs/PrettyFuncDumperTest.pdb > %t
5; RUN: FileCheck -input-file=%t %s -check-prefix=GLOBALS_FUNC
6; RUN: FileCheck -input-file=%t %s -check-prefix=GLOBALS_DATA
7; RUN: FileCheck -input-file=%t %s -check-prefix=TYPEDEF
8
9; GLOBALS_FUNC: ---GLOBALS---
10; GLOBALS_FUNC-DAG: void __cdecl NS::Func(char a, int b, ...)
11; GLOBALS_FUNC-DAG: void __cdecl TemplateFunc<1,int>(int <Arg_0>)
12; GLOBALS_FUNC-DAG: void __cdecl TemplateFunc<1,int,int,int>(int <Arg_0>, int <Arg_1>, int <Arg_2>)
13; GLOBALS_FUNC-DAG: void __cdecl `anonymous namespace'::Func(int& a, const double b, volatile bool c)
14; GLOBALS_FUNC-DAG: void __cdecl Func(int* array)
15; GLOBALS_FUNC-DAG: int MemberFuncsTest::A::FuncA()
16; GLOBALS_FUNC-DAG: void __cdecl MemberFuncsTest::A::FuncB(int a, ...)
17
18; GLOBALS_DATA: ---GLOBALS---
19; GLOBALS_DATA-DAG: void (__cdecl * FuncVarA)()
20; GLOBALS_DATA-DAG: float (__cdecl * FuncVarB)()
21; GLOBALS_DATA-DAG: int (__cdecl * VariadicFuncVar)(char, double, ...)
22
23; TYPEDEF: ---TYPES---
24; TYPEDEF: Typedefs:
25; TYPEDEF-DAG: typedef void (__cdecl *)() FuncPtrA
26; TYPEDEF-DAG: typedef int (__cdecl *)(char, double, ...) VariadicFuncPtrTypedef
27; TYPEDEF-DAG: typedef float (__cdecl *)() FuncPtrB
28