mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-10 02:25:47 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230161 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
593 B
C++
25 lines
593 B
C++
// 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;
|
|
}
|