From d3e2d972296e46a24c23aaadcae494a83b7f0c56 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Mon, 20 Jun 2016 23:01:11 +0000 Subject: Test that lldb calls the right 'printf' even when a 'printf' method exists. This test is currently failing. We have a bug for it, as noted. llvm-svn: 273211 --- .../Python/lldbsuite/test/lang/cpp/printf/main.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lldb/packages/Python/lldbsuite/test/lang/cpp/printf/main.cpp (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/printf/main.cpp') diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/printf/main.cpp b/lldb/packages/Python/lldbsuite/test/lang/cpp/printf/main.cpp new file mode 100644 index 00000000000..badf1be0b41 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/printf/main.cpp @@ -0,0 +1,21 @@ +//===-- main.cpp ------------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +class PrintfContainer { +public: + int printf() { + return 0; + } +}; + +int main() { + PrintfContainer().printf(); //% self.expect("expression -- printf(\"Hello\\n\")", substrs = ['6']) + return 0; +} + -- cgit v1.2.3