bolt/deps/llvm-18.1.8/lldb/test/API/lang/c/offsetof/main.c

13 lines
277 B
C
Raw Normal View History

2025-02-14 19:21:04 +01:00
#include <stdint.h>
struct Foo {
int8_t a;
int16_t b;
};
int main (int argc, char const *argv[]) {
struct Foo f;
return f.a; //% self.expect("expr offsetof(Foo, a)", substrs = ['= 0'])
//% self.expect("expr offsetof(Foo, b)", substrs = ['= 2'])
}