Skip to content

Commit

Permalink
Relax the target-cpu-on-function codegen test so it just checks for p…
Browse files Browse the repository at this point in the history
…resence of the attribute.
  • Loading branch information
michaelwoerister committed Aug 9, 2018
1 parent 3a70050 commit 49972e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/codegen/target-cpu-on-functions.rs
Expand Up @@ -13,7 +13,6 @@

// no-prefer-dynamic
// ignore-tidy-linelength
// only-x86_64
// compile-flags: -C no-prepopulate-passes -C panic=abort -Z cross-lang-lto -Cpasses=name-anon-globals

#![crate_type = "staticlib"]
Expand All @@ -27,4 +26,4 @@ pub extern fn exported() {
// CHECK-LABEL: define {{.*}} @_ZN23target_cpu_on_functions12not_exported{{.*}}() {{.*}} #0
fn not_exported() {}

// CHECK: attributes #0 = {{.*}} "target-cpu"="x86-64"
// CHECK: attributes #0 = {{.*}} "target-cpu"="{{.*}}"

0 comments on commit 49972e9

Please sign in to comment.