Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
consts
/
const-extern-function.rs
blob: cfcf99b867a0119ee57669fbf71d1d1a3da5eb72 [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
non_upper_case_globals
)]
extern
fn
foopy
()
{}
static
f
:
extern
"C"
fn
()
=
foopy
;
static
s
:
S
=
S
{
f
:
foopy
};
struct
S
{
f
:
extern
"C"
fn
()
}
pub
fn
main
()
{
assert
!(
foopy
as
extern
"C"
fn
()
==
f
);
assert
!(
f
==
s
.
f
);
}