]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/abi-repr-ext.rs
Rollup merge of #95749 - compiler-errors:ambig, r=oli-obk
[rust.git] / src / test / codegen / abi-repr-ext.rs
1 // compile-flags: -O
2
3 #![crate_type="lib"]
4
5 #[repr(i8)]
6 pub enum Type {
7     Type1 = 0,
8     Type2 = 1
9 }
10
11 // CHECK: define{{( dso_local)?}} noundef signext i8 @test()
12 #[no_mangle]
13 pub extern "C" fn test() -> Type {
14     Type::Type1
15 }