summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2017-09-10 17:15:29 +0300
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2017-11-19 02:14:28 +0200
commit44eef7c9ac6d2944131c4216136a2c39e0c5da30 (patch)
treed1f28b28fda764097267bca70700a4f09889d5a8 /src/test/codegen
parent8afa3a01e61906459a25d305176137e14ba3f835 (diff)
downloadrust-44eef7c9ac6d2944131c4216136a2c39e0c5da30.tar.gz
rust-44eef7c9ac6d2944131c4216136a2c39e0c5da30.zip
rustc: do not inject discriminant fields into Layout::General's variants.
Diffstat (limited to 'src/test/codegen')
-rw-r--r--src/test/codegen/consts.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/codegen/consts.rs b/src/test/codegen/consts.rs
index 705488b7757..a75b8f3992d 100644
--- a/src/test/codegen/consts.rs
+++ b/src/test/codegen/consts.rs
@@ -54,7 +54,7 @@ pub fn inline_enum_const() -> E<i8, i16> {
 #[no_mangle]
 pub fn low_align_const() -> E<i16, [i16; 3]> {
 // Check that low_align_const and high_align_const use the same constant
-// CHECK: load {{.*}} bitcast ({ [0 x i8], i16, [0 x i8], i16, [4 x i8] }** [[LOW_HIGH_REF]]
+// CHECK: load {{.*}} bitcast ({ i16, [0 x i8], i16, [4 x i8] }** [[LOW_HIGH_REF]]
     *&E::A(0)
 }
 
@@ -62,6 +62,6 @@ pub fn low_align_const() -> E<i16, [i16; 3]> {
 #[no_mangle]
 pub fn high_align_const() -> E<i16, i32> {
 // Check that low_align_const and high_align_const use the same constant
-// CHECK: load {{.*}} bitcast ({ [0 x i8], i16, [0 x i8], i16, [4 x i8] }** [[LOW_HIGH_REF]]
+// CHECK: load {{.*}} bitcast ({ i16, [0 x i8], i16, [4 x i8] }** [[LOW_HIGH_REF]]
     *&E::A(0)
 }