Files
llvm/lldb/test/API/commands/frame/var/direct-ivar/cpp/main.cpp
Dave Lee 23ee705ac9 Recommit [lldb] Test 'v' support for direct ivar access (NFC)
Add basic tests for `frame variable`'s ability to direct access fields of `this` and
ivars of `self`.

This splits the tests, preventing ObjC tests from running on Linux.

Differential Revision: https://reviews.llvm.org/D145348
2023-03-06 11:52:41 -08:00

13 lines
134 B
C++

struct Structure {
int m_field;
void fun() {
// check this
}
};
int main() {
Structure s;
s.m_field = 30;
s.fun();
}