diff options
author | Pavel Labath <labath@google.com> | 2018-06-20 17:32:48 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2018-06-20 17:32:48 +0000 |
commit | 0583d7a56cb5f14ce57183d13269c13390acfada (patch) | |
tree | 0b780ac60df7aa68a6732c88ba6b1a7cedb4589d /lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/ns3.cpp | |
parent | db01c3adc6f921a27e2bd39847140c401860aa56 (diff) | |
download | bcm5719-llvm-0583d7a56cb5f14ce57183d13269c13390acfada.tar.gz bcm5719-llvm-0583d7a56cb5f14ce57183d13269c13390acfada.zip |
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. <cstdio> defines only
std::printf and not ::printf).
This consolidates the tests where this was an issue to always include
the <c???> 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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/ns3.cpp')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/ns3.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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 } |