]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/abi-repr-ext.rs
Rollup merge of #82490 - ehuss:update-cargo, r=ehuss
[rust.git] / src / test / codegen / abi-repr-ext.rs
1 #![crate_type="lib"]
2
3 #[repr(i8)]
4 pub enum Type {
5     Type1 = 0,
6     Type2 = 1
7 }
8
9 // CHECK: define signext i8 @test()
10 #[no_mangle]
11 pub extern "C" fn test() -> Type {
12     Type::Type1
13 }