]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/abi-repr-ext.rs
Merge commit '40dd3e2b7089b5e96714e064b731f6dbf17c61a9' into sync_cg_clif-2021-05-27
[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{{( dso_local)?}} signext i8 @test()
10 #[no_mangle]
11 pub extern "C" fn test() -> Type {
12     Type::Type1
13 }