repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
lldb
/
test
/
API
/
lang
/
c
/
offsetof
/
main.c
blob
cbb4a14441844a0dec91dca44b1304c910b510df
1
#include <stdint.h>
2
3
struct
Foo
{
4
int8_t
a
;
5
int16_t
b
;
6
};
7
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'])
12
}