diff options
Diffstat (limited to 'packages/Python/lldbsuite/test/functionalities/value_md5_crash/main.cpp')
-rw-r--r-- | packages/Python/lldbsuite/test/functionalities/value_md5_crash/main.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/Python/lldbsuite/test/functionalities/value_md5_crash/main.cpp b/packages/Python/lldbsuite/test/functionalities/value_md5_crash/main.cpp new file mode 100644 index 0000000..ba596b8 --- /dev/null +++ b/packages/Python/lldbsuite/test/functionalities/value_md5_crash/main.cpp @@ -0,0 +1,29 @@ +//===-- main.cpp ------------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +class A { +public: + virtual int foo() { return 1; } + virtual ~A () = default; + A() = default; +}; + +class B : public A { +public: + virtual int foo() { return 2; } + virtual ~B () = default; + B() = default; +}; + +int main() { + A* a = new B(); + a->foo(); // break here + return 0; // break here +} + |