[Clang] Prevent `mlink-builtin-bitcode` from internalizing the RPC client (#118661)
[llvm-project.git] / lldb / test / API / commands / expression / completion / main.cpp
blob5e03805a7a4d5c13327159bdd47dcb32012e951d
1 #include <reserved.h>
3 namespace LongNamespaceName { class NestedClass { long m; }; }
5 // Defined in other.cpp, we only have a forward declaration here.
6 struct ForwardDecl;
7 extern ForwardDecl fwd_decl;
9 class LongClassName { long i ; };
11 class Expr {
12 public:
13 int FooNoArgsBar() { return 1; }
14 int FooWithArgsBar(int i) { return i; }
15 int FooWithMultipleArgsBar(int i, int j) { return i + j; }
16 int FooUnderscoreBar_() { return 4; }
17 int FooNumbersBar1() { return 8; }
18 int MemberVariableBar = 0;
19 Expr &Self() { return *this; }
20 static int StaticMemberMethodBar() { return 82; }
23 int main()
25 LongClassName a;
26 LongNamespaceName::NestedClass NestedFoo;
27 long SomeLongVarNameWithCapitals = 44;
28 int SomeIntVar = 33;
29 Expr some_expr;
30 some_expr.FooNoArgsBar();
31 some_expr.FooWithArgsBar(1);
32 some_expr.FooUnderscoreBar_();
33 some_expr.FooNumbersBar1();
34 Expr::StaticMemberMethodBar();
35 ForwardDecl *fwd_decl_ptr = &fwd_decl;
36 MyVec myVec;
37 myVec.__func();
38 myVec._Func();
39 return 0; // Break here