]> git.lizzy.rs Git - rust.git/blobdiff - src/test/codegen/match-optimizes-away.rs
Rollup merge of #69106 - RReverser:wasi-fs-copy, r=KodrAus
[rust.git] / src / test / codegen / match-optimizes-away.rs
index d7b779374314dc94576b914886e6983454be6f98..8f66c518ccf48d244dcdaa2792ff00f869e7c48d 100644 (file)
@@ -1,12 +1,3 @@
-// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
 //
 // no-system-llvm
 // compile-flags: -O
@@ -14,6 +5,7 @@
 
 pub enum Three { A, B, C }
 
+#[repr(u16)]
 pub enum Four { A, B, C, D }
 
 #[no_mangle]
@@ -32,7 +24,7 @@ pub fn three_valued(x: Three) -> Three {
 pub fn four_valued(x: Four) -> Four {
     // CHECK-LABEL: @four_valued
     // CHECK-NEXT: {{^.*:$}}
-    // CHECK-NEXT: ret i8 %0
+    // CHECK-NEXT: ret i16 %0
     match x {
         Four::A => Four::A,
         Four::B => Four::B,