From 0583d7a56cb5f14ce57183d13269c13390acfada Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 20 Jun 2018 17:32:48 +0000 Subject: Make test sources compatible with android+libcxx+modules In a modules build, android is very picky about which symbols are visible after including libc++ headers (e.g. defines only std::printf and not ::printf). This consolidates the tests where this was an issue to always include the version of the headers and prefixes the symbols with std:: as necessary. Apart from that, there is no functional change in the tests. llvm-svn: 335149 --- .../Python/lldbsuite/test/lang/cpp/namespace/ns3.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/ns3.cpp') diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/ns3.cpp b/lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/ns3.cpp index 10b0df78422..205e1931f3e 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/ns3.cpp +++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/ns3.cpp @@ -13,15 +13,15 @@ extern int func(); // Note: the following function must be before the using. void test_lookup_before_using_directive() { - // BP_before_using_directive - printf("before using directive: func() = %d\n", func()); // eval func(), exp: 1 + // BP_before_using_directive + std::printf("before using directive: func() = %d\n", func()); // eval func(), exp: 1 } using namespace A; void test_lookup_after_using_directive() { - // BP_after_using_directive - //printf("func() = %d\n", func()); // eval func(), exp: error, amiguous - printf("after using directive: func2() = %d\n", func2()); // eval func2(), exp: 3 - printf("after using directive: ::func() = %d\n", ::func()); // eval ::func(), exp: 1 - printf("after using directive: B::func() = %d\n", B::func()); // eval B::func(), exp: 4 + // BP_after_using_directive + //printf("func() = %d\n", func()); // eval func(), exp: error, amiguous + std::printf("after using directive: func2() = %d\n", func2()); // eval func2(), exp: 3 + std::printf("after using directive: ::func() = %d\n", ::func()); // eval ::func(), exp: 1 + std::printf("after using directive: B::func() = %d\n", B::func()); // eval B::func(), exp: 4 } -- cgit v1.2.3