Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / lang / cpp / namespace / ns.cpp
blob15e757569454a02fcee62bc2ffe7a1d4afdcf5d6
1 #include "ns.h"
3 int foo()
5 std::printf("global foo()\n");
6 return 42;
8 int func()
10 std::printf("global func()\n");
11 return 1;
13 int func(int a)
15 std::printf("global func(int)\n");
16 return a + 1;
18 void test_lookup_at_global_scope()
20 // BP_global_scope
21 std::printf("at global scope: foo() = %d\n", foo()); // eval foo(), exp: 42
22 std::printf("at global scope: func() = %d\n", func()); // eval func(), exp: 1