From 7ec18e3d10aeded985ab2fcb0781d17a80ad0df5 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Thu, 9 Aug 2012 19:33:34 +0000 Subject: Adding a new uppercase hex format specifier. This commit also changes the short names for formats so that uppercase hex can be 'X', which was previously assigned to hex float. hex float now has no short name. llvm-svn: 161606 --- .../data-formatter/rdar-10449092/main.cpp | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lldb/test/functionalities/data-formatter/rdar-10449092/main.cpp (limited to 'lldb/test/functionalities/data-formatter/rdar-10449092/main.cpp') diff --git a/lldb/test/functionalities/data-formatter/rdar-10449092/main.cpp b/lldb/test/functionalities/data-formatter/rdar-10449092/main.cpp new file mode 100644 index 00000000000..97804202639 --- /dev/null +++ b/lldb/test/functionalities/data-formatter/rdar-10449092/main.cpp @@ -0,0 +1,25 @@ +//===-- 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 + +struct foo +{ + int first; + int second; +}; + +int main () +{ + struct foo mine = {0x001122AA, 0x1122BB44}; + mine.first = 0xAABBCCDD; // Set break point at this line. + mine.second = 0xFF00FF00; + return 0; +} + -- cgit v1.2.3