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 class A 12 { 13 public: 14 static int getStaticValue(); 15 int getMemberValue(); 16 int a; 17 }; 18 19 int A::getStaticValue() 20 { 21 return 5; 22 } 23 24 int A::getMemberValue() 25 { 26 return a; 27 } 28 29 int main() 30 { 31 A my_a; 32 33 my_a.a = 3; 34 35 printf("%d\n", A::getStaticValue()); // Break at this line 36 printf("%d\n", my_a.getMemberValue()); 37 } 38