From 660764a060805dc4bb85d4d693fd58b54c800e41 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Tue, 22 Mar 2016 21:07:54 +0000 Subject: 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 --- .../test/functionalities/nested_alias/main.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/main.cpp (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/main.cpp') 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 + +int main (int argc, char const *argv[]) +{ + void* my_ptr[] = { + reinterpret_cast(0xDEADBEEF), + reinterpret_cast(main), + reinterpret_cast(0xFEEDBEEF), + reinterpret_cast(0xFEEDDEAD), + reinterpret_cast(0xDEADFEED) + }; + return 0; // break here +} + -- cgit v1.2.3