diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2018-09-30 16:33:55 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2018-09-30 16:33:55 +0200 |
| commit | 69fe4d6f92424441115ee521bfff951eb0493af4 (patch) | |
| tree | 263a2ef188515ecbd0f35a472c9431507bb17266 /example/example.rs | |
| parent | 3965a65a79b38797480e1a27d4286ef16f747015 (diff) | |
| download | rust-69fe4d6f92424441115ee521bfff951eb0493af4.tar.gz rust-69fe4d6f92424441115ee521bfff951eb0493af4.zip | |
Workaround some missing encodings in cranelift
Diffstat (limited to 'example/example.rs')
| -rw-r--r-- | example/example.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/example/example.rs b/example/example.rs index 67ebf94cf91..9e247964f32 100644 --- a/example/example.rs +++ b/example/example.rs @@ -192,3 +192,7 @@ pub struct StrWrapper { fn str_wrapper_get(w: &StrWrapper) -> &str { &w.s } + +fn i16_as_i8(a: i16) -> i8 { + a as i8 +} |
