Sign in
android
/
toolchain
/
rustc
/
9cf678059bdfead0671d48dbbb51b152b62d6995
/
.
/
src
/
test
/
codegen
/
abi-repr-ext.rs
blob: 2b34eaf94172be8536b94eb3897365b3d271d324 [
file
] [
log
] [
blame
]
// compile-flags: -O
#![
crate_type
=
"lib"
]
#[
repr
(
i8
)]
pub
enum
Type
{
Type1
=
0
,
Type2
=
1
}
// CHECK: define{{( dso_local)?}} noundef signext i8 @test()
#[
no_mangle
]
pub
extern
"C"
fn
test
()
->
Type
{
Type
::
Type1
}