You've already forked llvm-project
mirror of
https://github.com/encounter/llvm-project.git
synced 2026-03-30 11:27:19 -07:00
26 lines
315 B
C++
26 lines
315 B
C++
|
|
struct A
|
||
|
|
{
|
||
|
|
short m_a;
|
||
|
|
static long s_b;
|
||
|
|
char m_c;
|
||
|
|
static int s_d;
|
||
|
|
|
||
|
|
long access() {
|
||
|
|
return m_a + s_b + m_c + s_d; // breakpoint 2
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
long A::s_b = 2;
|
||
|
|
int A::s_d = 4;
|
||
|
|
|
||
|
|
int main()
|
||
|
|
{
|
||
|
|
A my_a;
|
||
|
|
my_a.m_a = 1;
|
||
|
|
my_a.m_c = 3;
|
||
|
|
|
||
|
|
my_a.access(); // breakpoint 1
|
||
|
|
return 0;
|
||
|
|
}
|
||
|
|
|