xref: /llvm-project/lldb/test/API/lang/cpp/dynamic-value-same-basename/main.cpp (revision 99451b4453688a94c6014cac233d371ab4cc342d)
1 #include <stdio.h>
2 
3 namespace namesp
4 {
5   class Virtual {
6   public:
doSomething()7     virtual void doSomething() {
8       printf ("namesp function did something.\n");
9     }
10   };
11 }
12 
13 class Virtual {
14   public:
doSomething()15   virtual void doSomething() {
16     printf("Virtual function did something.\n");
17   }
18 };
19 
20 int
main()21 main()
22 {
23   namesp::Virtual my_outer;
24   Virtual my_virtual;
25 
26   // Break here to get started
27   my_outer.doSomething();
28   my_virtual.doSomething();
29 
30   return 0;
31 }
32 
33