diff options
author | Zachary Turner <zturner@google.com> | 2015-02-22 06:47:32 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-02-22 06:47:32 +0000 |
commit | a54b7ddb25bda65696b7c2af8b5edab6ca85445c (patch) | |
tree | cf4fd4827cfb17ee69735be3e26b36b92aa5be3f /llvm/test/DebugInfo/PDB/Inputs/symbolformat.cpp | |
parent | a65298af650dd10cc8fa439e46d1a1ec4d1e5555 (diff) | |
download | bcm5719-llvm-a54b7ddb25bda65696b7c2af8b5edab6ca85445c.tar.gz bcm5719-llvm-a54b7ddb25bda65696b7c2af8b5edab6ca85445c.zip |
[llvm-pdbdump] Resubmit "Add some tests for llvm-pdbdump".
NOTE: This patch intentionally breaks the build. It attempts
to resubmit r230083, but with some debug logging in the CMake
and lit config files to determine why certain bots do not
correctly disable the DIA tests when DIA is not available.
After a sufficient number of bots fail, this patch will either
be reverted or, if the cause of the failure becomes obvious,
a fix submitted with the log statements removed.
llvm-svn: 230161
Diffstat (limited to 'llvm/test/DebugInfo/PDB/Inputs/symbolformat.cpp')
-rw-r--r-- | llvm/test/DebugInfo/PDB/Inputs/symbolformat.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/PDB/Inputs/symbolformat.cpp b/llvm/test/DebugInfo/PDB/Inputs/symbolformat.cpp new file mode 100644 index 00000000000..1aa865214fb --- /dev/null +++ b/llvm/test/DebugInfo/PDB/Inputs/symbolformat.cpp @@ -0,0 +1,24 @@ +// Compile with "cl /c /Zi /GR- symbolformat.cpp" +// Compile symbolformat-fpo.cpp (see file for instructions) +// Link with "link symbolformat.obj symbolformat-fpo.obj /debug /nodefaultlib +// /entry:main /out:symbolformat.exe" + +int __cdecl _purecall(void) { return 0; } + +struct A { + virtual void PureFunc() = 0 {} + virtual void VirtualFunc() {} + void RegularFunc() {} +}; + +struct B : public A { + void PureFunc() override {} +}; + +int main(int argc, char **argv) { + B b; + auto PureAddr = &B::PureFunc; + auto VirtualAddr = &A::PureFunc; + auto RegularAddr = &A::RegularFunc; + return 0; +} |