diff options
Diffstat (limited to 'packages/Python/lldbsuite/test/functionalities/data-formatter/ptr_ref_typedef/main.cpp')
-rw-r--r-- | packages/Python/lldbsuite/test/functionalities/data-formatter/ptr_ref_typedef/main.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/Python/lldbsuite/test/functionalities/data-formatter/ptr_ref_typedef/main.cpp b/packages/Python/lldbsuite/test/functionalities/data-formatter/ptr_ref_typedef/main.cpp new file mode 100644 index 000000000000..219f398da3f5 --- /dev/null +++ b/packages/Python/lldbsuite/test/functionalities/data-formatter/ptr_ref_typedef/main.cpp @@ -0,0 +1,19 @@ +//===-- main.cpp ------------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +typedef int Foo; + +int main() { + int lval = 1; + Foo* x = &lval; + Foo& y = lval; + Foo&& z = 1; + return 0; // Set breakpoint here +} + |