Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
offset_of2.rs
blob: d4ad9c2db31b9065e40631fce588d6e712436978 [
file
] [
log
] [
blame
]
// { dg-additional-options "-frust-compile-until=compilation -frust-assume-builtin-offset-of" }
pub
struct
Foo
{
a
:
i32
,
}
fn
main
()
{
let
_
=
offset_of
!(
Foo
,
a
);
// valid
}