Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try-perf
/
.
/
tests
/
run-make
/
include-all-symbols-linking
/
lib.rs
blob: 73186ee99e3d99771d4a774fd28a6f222d8a941d [
file
] [
log
] [
blame
]
mod
foo
{
#[
cfg_attr
(
target_os
=
"linux"
,
link_section
=
".rodata.STATIC"
)]
#[
cfg_attr
(
target_vendor
=
"apple"
,
link_section
=
"__DATA,STATIC"
)]
#[
used
]
static
STATIC
:
[
u32
;
10
]
=
[
1
;
10
];
}
mod
bar
{
#[
no_mangle
]
extern
"C"
fn
bar
()
->
i32
{
0
}
}