Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
src
/
test
/
codegen
/
abi-repr-ext.rs
blob: f93ccd794117dffc46ad5bcdcdc3bc12d2975f04 [
file
] [
log
] [
blame
] [
edit
]
#![
crate_type
=
"lib"
]
#[
repr
(
i8
)]
pub
enum
Type
{
Type1
=
0
,
Type2
=
1
}
// CHECK: define signext i8 @test()
#[
no_mangle
]
pub
extern
"C"
fn
test
()
->
Type
{
Type
::
Type1
}