Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / lang / c / offsetof / main.c
blobcbb4a14441844a0dec91dca44b1304c910b510df
1 #include <stdint.h>
3 struct Foo {
4 int8_t a;
5 int16_t b;
6 };
8 int main (int argc, char const *argv[]) {
9 struct Foo f;
10 return f.a; //% self.expect("expr offsetof(Foo, a)", substrs = ['= 0'])
11 //% self.expect("expr offsetof(Foo, b)", substrs = ['= 2'])