]> git.proxmox.com Git - rustc.git/blame - src/test/codegen/abi-repr-ext.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / codegen / abi-repr-ext.rs
CommitLineData
ee023bcb
FG
1// compile-flags: -O
2
5869c6ff
XL
3#![crate_type="lib"]
4
5#[repr(i8)]
6pub enum Type {
7 Type1 = 0,
8 Type2 = 1
9}
10
ee023bcb 11// CHECK: define{{( dso_local)?}} noundef signext i8 @test()
5869c6ff
XL
12#[no_mangle]
13pub extern "C" fn test() -> Type {
14 Type::Type1
15}