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.
14 lines
211 B
C++
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
|
|
}
|