Summary: This patch includes following changes: * split lldb-mi tests into separate folders. It will make our life simpler because we can modify a test program of certain test and don't worry about other tests * a bit refactoring * fix comments * improve some tests Reviewers: emaste, clayborg, abidh Reviewed By: clayborg, abidh Subscribers: clayborg, lldb-commits, emaste, abidh Differential Revision: http://reviews.llvm.org/D7762 llvm-svn: 230022
67 lines
1.1 KiB
C++
67 lines
1.1 KiB
C++
//===-- main.cpp ------------------------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
struct inner
|
|
{
|
|
int var_d;
|
|
};
|
|
|
|
struct my_type
|
|
{
|
|
int var_a;
|
|
char var_b;
|
|
struct inner inner_;
|
|
};
|
|
|
|
int
|
|
local_int_test(void)
|
|
{
|
|
int a = 10, b = 20;
|
|
return 0; // BP_local_int_test
|
|
}
|
|
|
|
int
|
|
local_struct_test(void)
|
|
{
|
|
struct my_type var_c;
|
|
var_c.var_a = 10;
|
|
var_c.var_b = 'a';
|
|
var_c.inner_.var_d = 30;
|
|
return 0; // BP_local_struct_test
|
|
}
|
|
|
|
int
|
|
local_array_test(void)
|
|
{
|
|
int array[3];
|
|
array[0] = 100;
|
|
array[1] = 200;
|
|
array[2] = 300;
|
|
return 0; // BP_local_array_test
|
|
}
|
|
|
|
int
|
|
local_pointer_test(void)
|
|
{
|
|
const char *test_str = "Rakaposhi";
|
|
int var_e = 24;
|
|
int *ptr = &var_e;
|
|
return 0; // BP_local_pointer_test
|
|
}
|
|
|
|
int
|
|
main(int argc, char const *argv[])
|
|
{
|
|
local_int_test();
|
|
local_struct_test();
|
|
local_array_test();
|
|
local_pointer_test();
|
|
return 0;
|
|
}
|