Skip to content

Commit

Permalink
Fix codegen tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed May 3, 2019
1 parent 6ed4b52 commit 2e85b31
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/test/codegen/enum-debug-niche-2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
// compile-flags: -g -C no-prepopulate-passes

// CHECK: {{.*}}DICompositeType{{.*}}tag: DW_TAG_variant_part,{{.*}}size: 32,{{.*}}
// CHECK: {{.*}}DIDerivedType{{.*}}tag: DW_TAG_member,{{.*}}name: "Placeholder",{{.*}}extraData: i64 4294967295{{[,)].*}}
// CHECK: {{.*}}DIDerivedType{{.*}}tag: DW_TAG_member,{{.*}}name: "Error",{{.*}}extraData: i64 0{{[,)].*}}
// CHECK: {{.*}}DIDerivedType{{.*}}tag: DW_TAG_member,{{.*}}name: "Placeholder",{{.*}}extraData: i128 4294967295{{[,)].*}}
// CHECK: {{.*}}DIDerivedType{{.*}}tag: DW_TAG_member,{{.*}}name: "Error",{{.*}}extraData: i128 0{{[,)].*}}

#![feature(never_type)]
#![feature(nll)]
Expand Down
14 changes: 9 additions & 5 deletions src/test/codegen/repr-u128.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// ignore-windows
// ignore-tidy-linelength
//min-system-llvm-version 8.0
// ignore-windows
// min-system-llvm-version 8.0

// compile-flags: -g -C no-prepopulate-passes

// CHECK: {{.*}}DIDerivedType{{.*}}tag: DW_TAG_member,{{.*}}name: "None",{{.*}}extraData: i128 18446745000000000124{{[,)].*}}

//compile-flags: -g -C no-prepopulate-passes
#![feature(repr128)]

#[repr(u128)]
Expand All @@ -12,9 +15,10 @@ pub enum Foo {
Bar = 18_446_745_000_000_000_123,
}

// CHECK: {{.*}}DIDerivedType{{.*}}tag: DW_TAG_member,{{.*}}name: "None",{{.*}}extraData:18446745000000000124
pub fn foo() -> Option<Foo> {
None
}

fn main() {}
fn main() {
let roa = foo();
}

0 comments on commit 2e85b31

Please sign in to comment.