1 //===-- main.cpp ------------------------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include <stdio.h> 10 11 struct A 12 { 13 short m_a; 14 static long s_b; 15 char m_c; 16 static int s_d; 17 18 long access() { 19 return m_a + s_b + m_c + s_d; // breakpoint 2 20 } 21 }; 22 23 long A::s_b = 2; 24 int A::s_d = 4; 25 26 int main() 27 { 28 A my_a; 29 my_a.m_a = 1; 30 my_a.m_c = 3; 31 32 my_a.access(); // breakpoint 1 33 return 0; 34 } 35 36