diff options
Diffstat (limited to 'unittests/SymbolFile/PDB/Inputs')
| -rw-r--r-- | unittests/SymbolFile/PDB/Inputs/test-pdb-nested.h | 2 | ||||
| -rw-r--r-- | unittests/SymbolFile/PDB/Inputs/test-pdb-types.cpp | 9 | ||||
| -rw-r--r-- | unittests/SymbolFile/PDB/Inputs/test-pdb-types.exe | bin | 7168 -> 8192 bytes | |||
| -rw-r--r-- | unittests/SymbolFile/PDB/Inputs/test-pdb-types.pdb | bin | 143360 -> 102400 bytes | |||
| -rw-r--r-- | unittests/SymbolFile/PDB/Inputs/test-pdb.h | 2 |
5 files changed, 10 insertions, 3 deletions
diff --git a/unittests/SymbolFile/PDB/Inputs/test-pdb-nested.h b/unittests/SymbolFile/PDB/Inputs/test-pdb-nested.h index d0a93d8f39e8..9d3995558233 100644 --- a/unittests/SymbolFile/PDB/Inputs/test-pdb-nested.h +++ b/unittests/SymbolFile/PDB/Inputs/test-pdb-nested.h @@ -3,4 +3,4 @@ inline int baz(int n) { return n + 1; } -#endif
\ No newline at end of file +#endif diff --git a/unittests/SymbolFile/PDB/Inputs/test-pdb-types.cpp b/unittests/SymbolFile/PDB/Inputs/test-pdb-types.cpp index 89d69c12963e..1b4f2c49721f 100644 --- a/unittests/SymbolFile/PDB/Inputs/test-pdb-types.cpp +++ b/unittests/SymbolFile/PDB/Inputs/test-pdb-types.cpp @@ -34,7 +34,7 @@ class NSClass { float f;
double d;
};
-}
+} // namespace NS
class Class {
public:
@@ -48,6 +48,10 @@ int test_func(int a, int b) { return a + b; } typedef Class ClassTypedef;
typedef NS::NSClass NSClassTypedef;
+typedef int (*FuncPointerTypedef)();
+typedef int (*VariadicFuncPointerTypedef)(char, ...);
+FuncPointerTypedef GlobalFunc;
+VariadicFuncPointerTypedef GlobalVariadicFunc;
int GlobalArray[10];
static const int sizeof_NSClass = sizeof(NS::NSClass);
@@ -57,6 +61,9 @@ static const int sizeof_Enum = sizeof(Enum); static const int sizeof_ShortEnum = sizeof(ShortEnum);
static const int sizeof_ClassTypedef = sizeof(ClassTypedef);
static const int sizeof_NSClassTypedef = sizeof(NSClassTypedef);
+static const int sizeof_FuncPointerTypedef = sizeof(FuncPointerTypedef);
+static const int sizeof_VariadicFuncPointerTypedef =
+ sizeof(VariadicFuncPointerTypedef);
static const int sizeof_GlobalArray = sizeof(GlobalArray);
int main(int argc, char **argv) {
diff --git a/unittests/SymbolFile/PDB/Inputs/test-pdb-types.exe b/unittests/SymbolFile/PDB/Inputs/test-pdb-types.exe Binary files differindex 21a4bd2b4ef5..a6a0560eb666 100644 --- a/unittests/SymbolFile/PDB/Inputs/test-pdb-types.exe +++ b/unittests/SymbolFile/PDB/Inputs/test-pdb-types.exe diff --git a/unittests/SymbolFile/PDB/Inputs/test-pdb-types.pdb b/unittests/SymbolFile/PDB/Inputs/test-pdb-types.pdb Binary files differindex acf241bcb5d6..1a249e3635ce 100644 --- a/unittests/SymbolFile/PDB/Inputs/test-pdb-types.pdb +++ b/unittests/SymbolFile/PDB/Inputs/test-pdb-types.pdb diff --git a/unittests/SymbolFile/PDB/Inputs/test-pdb.h b/unittests/SymbolFile/PDB/Inputs/test-pdb.h index 077d9d6b1fac..c935de334d73 100644 --- a/unittests/SymbolFile/PDB/Inputs/test-pdb.h +++ b/unittests/SymbolFile/PDB/Inputs/test-pdb.h @@ -7,4 +7,4 @@ int bar(int n); inline int foo(int n) { return baz(n) + 1; } -#endif
\ No newline at end of file +#endif |
