Files
clang-p2996/lldb/test/API/lang/cpp/static_methods/main.cpp
Raphael Isemann 4bee2afcd7 [lldb][NFC] Modernize TestCPPStaticMethods
Now with LLVM code style and expect_expr for checking. Also some minor changes
to be more similar to the structure we use in other tests.
2020-05-20 12:27:44 +02:00

14 lines
211 B
C++

struct A {
public:
static int getStaticValue() { return 5; }
int getMemberValue() { return a; }
int a;
};
int main()
{
A a;
a.a = 3;
return A::getStaticValue() + a.getMemberValue(); // Break here
}