Files
clang-p2996/lldb/test/API/lang/cpp/static_members/main.cpp
Raphael Isemann 8b656b8846 [lldb] Re-eanble and rewrite TestCPPStaticMembers
It's not clear why the whole test got disabled, but the linked bug report
has since been fixed and the only part of it that still fails is the test
for the too permissive lookup. This re-enables the test, rewrites it to use
the modern test functions we have and splits the failing part into its
own test that we can skip without disabling the rest.
2021-05-25 11:52:28 +02:00

21 lines
264 B
C++

struct A {
short m_a;
static long s_b;
static int s_c;
long access() {
return m_a + s_b + s_c; // stop in member function
}
};
long A::s_b = 2;
int A::s_c = 3;
int main() {
A my_a;
my_a.m_a = 1;
my_a.access(); // stop in main
return 0;
}