Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-pdbutil / Inputs / FilterTest.cpp
blob4dd5581e2fca2df3a75e4c8ac01ea7b88c8a8b10
1 // Compile with "cl /c /Zi /GR- FilterTest.cpp"
2 // Link with "link FilterTest.obj /debug /nodefaultlib /entry:main"
4 class FilterTestClass {
5 public:
6 typedef int NestedTypedef;
7 enum NestedEnum {
8 NestedEnumValue1
9 };
11 void MemberFunc() {}
13 int foo() const { return IntMemberVar; }
15 private:
16 int IntMemberVar;
17 double DoubleMemberVar;
20 int IntGlobalVar;
21 double DoubleGlobalVar;
22 typedef int GlobalTypedef;
23 char OneByte;
24 char TwoBytes[2];
25 char ThreeBytes[3];
27 enum GlobalEnum {
28 GlobalEnumVal1
29 } GlobalEnumVar;
31 int CFunc() {
32 return (int)OneByte * 2;
34 int BFunc() {
35 return 42;
37 int AFunc() {
38 static FilterTestClass FC;
40 return (CFunc() + BFunc()) * IntGlobalVar + FC.foo();
43 int main(int argc, char **argv) {
44 FilterTestClass TestClass;
45 GlobalTypedef v1;
46 return 0;