diff options
| author | bors <bors@rust-lang.org> | 2021-01-30 10:50:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-01-30 10:50:16 +0000 |
| commit | 7ce1b3b24491cbe10669cbe2b5733c2fe7cfe5b7 (patch) | |
| tree | b4bc76e37d133d24df1e8a93a0a2a0fa4aa74e7a /src/test/codegen | |
| parent | ebaea9e850648dfeaeec353fd66c155c80de5ded (diff) | |
| parent | 31e7634749a737be8118ec8fe92c2dfcd2d10046 (diff) | |
| download | rust-7ce1b3b24491cbe10669cbe2b5733c2fe7cfe5b7.tar.gz rust-7ce1b3b24491cbe10669cbe2b5733c2fe7cfe5b7.zip | |
Auto merge of #81545 - JohnTitor:rollup-zlt3tn6, r=JohnTitor
Rollup of 16 pull requests Successful merges: - #79023 (Add `core::stream::Stream`) - #80562 (Consider Scalar to be a bool only if its unsigned) - #80886 (Stabilize raw ref macros) - #80959 (Stabilize `unsigned_abs`) - #81291 (Support FRU pattern with `[feature(capture_disjoint_fields)]`) - #81409 (Slight simplification of chars().count()) - #81468 (cfg(version): treat nightlies as complete) - #81473 (Warn write-only fields) - #81495 (rustdoc: Remove unnecessary optional) - #81499 (Updated Vec::splice documentation) - #81501 (update rustfmt to v1.4.34) - #81505 (`fn cold_path` doesn't need to be pub) - #81512 (Add missing variants in match binding) - #81515 (Fix typo in pat.rs) - #81519 (Don't print error output from rustup when detecting default build triple) - #81520 (Don't clone LLVM submodule when download-ci-llvm is set) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/abi-repr-ext.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/codegen/abi-repr-ext.rs b/src/test/codegen/abi-repr-ext.rs new file mode 100644 index 00000000000..f93ccd79411 --- /dev/null +++ b/src/test/codegen/abi-repr-ext.rs @@ -0,0 +1,13 @@ +#![crate_type="lib"] + +#[repr(i8)] +pub enum Type { + Type1 = 0, + Type2 = 1 +} + +// CHECK: define signext i8 @test() +#[no_mangle] +pub extern "C" fn test() -> Type { + Type::Type1 +} |
