Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-pdbutil / Inputs / PrettyFuncDumperTest.cpp
blob8d9453c51b0f61ae5b6e1225f68cb2f13fa78000
1 // Compile for x86 (FPO disabled)
2 // Compile with "cl /c /Zi /GR- PrettyFuncDumperTest.cpp"
3 // Link with "link PrettyFuncDumperTest.obj /debug /nodefaultlib /entry:main"
5 typedef void (*FuncPtrA)();
6 FuncPtrA FuncVarA;
8 typedef float (*FuncPtrB)(void);
9 FuncPtrB FuncVarB;
11 typedef int(*VariadicFuncPtrTypedef)(char, double, ...);
12 VariadicFuncPtrTypedef VariadicFuncVar;
14 void Func(int array[]) { return; }
16 template <int N=1, class ...T>
17 void TemplateFunc(T ...Arg) {
18 return;
21 namespace {
22 void Func(int& a, const double b, volatile bool c) { return; }
25 namespace NS {
26 void Func(char a, int b, ...) {
27 return;
31 namespace MemberFuncsTest {
32 class A {
33 public:
34 int FuncA() { return 1; }
35 void FuncB(int a, ...) {}
39 int main() {
40 MemberFuncsTest::A v1;
41 v1.FuncA();
42 v1.FuncB(9, 10, 20);
44 NS::Func('c', 2, 10, 100);
46 TemplateFunc(10);
47 TemplateFunc(10, 11, 88);
48 return 0;