[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / lldb / packages / Python / lldbsuite / test / lang / cpp / static_members / main.cpp
blobab8ae1b645f15eb9d16e0e3ed08c2367f6f5fe0e
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 //===----------------------------------------------------------------------===//
9 #include <stdio.h>
11 struct A
13 short m_a;
14 static long s_b;
15 char m_c;
16 static int s_d;
18 long access() {
19 return m_a + s_b + m_c + s_d; // breakpoint 2
23 long A::s_b = 2;
24 int A::s_d = 4;
26 int main()
28 A my_a;
29 my_a.m_a = 1;
30 my_a.m_c = 3;
32 my_a.access(); // breakpoint 1
33 return 0;