Skip to content
/ rust Public
forked from rust-lang/rust

Commit

Permalink
add -O to some tests which depend on attributes being added
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdesjardins committed Mar 10, 2024
1 parent 8fdd5e0 commit f18c2f8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/codegen/loongarch-abi/loongarch64-lp64d-abi.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ compile-flags: -C no-prepopulate-passes --target loongarch64-unknown-linux-gnu
//@ compile-flags: -O -C no-prepopulate-passes --target loongarch64-unknown-linux-gnu
//@ needs-llvm-components: loongarch

#![feature(no_core, lang_items)]
Expand Down
2 changes: 1 addition & 1 deletion tests/codegen/repr/transparent-imm-array.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ revisions: arm-linux arm-android armv7-linux armv7-android mips thumb sparc
//@ compile-flags: -C no-prepopulate-passes
//@ compile-flags: -O -C no-prepopulate-passes

//@[arm-linux] compile-flags: --target arm-unknown-linux-gnueabi
//@[arm-linux] needs-llvm-components: arm
Expand Down
5 changes: 3 additions & 2 deletions tests/codegen/repr/transparent-mips64.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
//@ revisions: mips64 mips64el
//@ compile-flags: -O -C no-prepopulate-passes

//@[mips64] compile-flags: -C no-prepopulate-passes --target mips64-unknown-linux-gnuabi64
//@[mips64] compile-flags: --target mips64-unknown-linux-gnuabi64
//@[mips64] needs-llvm-components: mips
//@[mips64el] compile-flags: -C no-prepopulate-passes --target mips64el-unknown-linux-gnuabi64
//@[mips64el] compile-flags: --target mips64el-unknown-linux-gnuabi64
//@[mips64el] needs-llvm-components: mips

// See ./transparent.rs
Expand Down
2 changes: 1 addition & 1 deletion tests/codegen/repr/transparent-sysv64.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ revisions: linux apple windows
//@ compile-flags: -C no-prepopulate-passes
//@ compile-flags: -O -C no-prepopulate-passes

//@[linux] compile-flags: --target x86_64-unknown-linux-gnu
//@[linux] needs-llvm-components: x86
Expand Down

0 comments on commit f18c2f8

Please sign in to comment.