os-rust/src/test/codegen/abi-repr-ext.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
231 B
Rust
Raw Normal View History

// 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
}