From 46252398f012414616052a4d5a15a87cb0fbf6f7 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Thu, 19 Nov 2015 22:28:58 +0000 Subject: Fix up LLDB for a change in the way clang represents anonymous unions such that the 'frame variable' command can still find the members of such union as if they were top-level variables in the current scope llvm-svn: 253613 --- .../test/lang/cpp/frame-var-anon-unions/main.cpp | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lldb/packages/Python/lldbsuite/test/lang/cpp/frame-var-anon-unions/main.cpp (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/frame-var-anon-unions/main.cpp') diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/frame-var-anon-unions/main.cpp b/lldb/packages/Python/lldbsuite/test/lang/cpp/frame-var-anon-unions/main.cpp new file mode 100644 index 00000000000..494b846336f --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/frame-var-anon-unions/main.cpp @@ -0,0 +1,23 @@ +//===-- main.cpp ------------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +int main() { + union { + int i; + char c; + }; + struct { + int x; + char y; + short z; + } s{3,'B',14}; + i = 0xFFFFFF00; + c = 'A'; + return c; // break here +} -- cgit v1.2.3