diff options
author | Enrico Granata <egranata@apple.com> | 2016-03-22 21:07:54 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2016-03-22 21:07:54 +0000 |
commit | 660764a060805dc4bb85d4d693fd58b54c800e41 (patch) | |
tree | 4a9fe31a7d2e83a1103fa26e2b8210cc8b2d9ad0 /lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/main.cpp | |
parent | 00294b34a3c99f3540214a148c0bd15e68f9d7fd (diff) | |
download | bcm5719-llvm-660764a060805dc4bb85d4d693fd58b54c800e41.tar.gz bcm5719-llvm-660764a060805dc4bb85d4d693fd58b54c800e41.zip |
Fix a bug caused by my alias refactoring where, if an alias was defined in terms of another alias, trying to run the nested command would actually cause a crash in the command interpreter
llvm-svn: 264096
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/main.cpp')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/main.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/main.cpp b/lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/main.cpp new file mode 100644 index 00000000000..4424cf30c3a --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/main.cpp @@ -0,0 +1,22 @@ +//===-- main.cpp ------------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +#include <stdio.h> + +int main (int argc, char const *argv[]) +{ + void* my_ptr[] = { + reinterpret_cast<void*>(0xDEADBEEF), + reinterpret_cast<void*>(main), + reinterpret_cast<void*>(0xFEEDBEEF), + reinterpret_cast<void*>(0xFEEDDEAD), + reinterpret_cast<void*>(0xDEADFEED) + }; + return 0; // break here +} + |