]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/abi-repr-ext.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[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 }