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 struct A 10 { 11 short m_a; 12 static long s_b; 13 char m_c; 14 static int s_d; 15 16 long access() { 17 return m_a + s_b + m_c + s_d; // breakpoint 2 18 } 19 }; 20 21 long A::s_b = 2; 22 int A::s_d = 4; 23 24 int main() 25 { 26 A my_a; 27 my_a.m_a = 1; 28 my_a.m_c = 3; 29 30 my_a.access(); // breakpoint 1 31 return 0; 32 } 33 34