[AMDGPU] Add True16 register classes.
[llvm-project.git] / lldb / test / API / commands / expression / context-object / main.cpp
blob4306e9520c010edeccf6a3f375cb5a4ea41eab0f
1 namespace cpp_namespace {
2 struct CppStruct {
3 int field = 1111;
5 int function() {
6 return 2222;
8 };
10 union CppUnion {
11 char field_char;
12 short field_short;
13 int field_int;
16 CppStruct GetCppStruct() {
17 return CppStruct();
20 CppStruct global;
22 CppStruct *GetCppStructPtr() {
23 return &global;
27 int global = 3333;
29 int main()
31 cpp_namespace::CppStruct cpp_struct = cpp_namespace::GetCppStruct();
32 cpp_struct.function();
34 cpp_namespace::CppStruct &cpp_struct_ref = cpp_struct;
35 cpp_struct_ref.function();
37 int field = 4444;
39 cpp_namespace::CppUnion cpp_union;
40 cpp_union.field_int = 5555;
42 int cpp_scalar = 6666;
44 cpp_namespace::CppStruct cpp_array[16];
46 cpp_namespace::CppStruct *cpp_pointer = cpp_namespace::GetCppStructPtr();
48 return 0; // Break here