about summary refs log tree commit diff
path: root/src/test/codegen/pic-relocation-model.rs
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2022-08-19 16:15:15 -0400
committerFelix S. Klock II <pnkfelix@pnkfx.org>2022-08-19 16:15:15 -0400
commit59cc718e76faee1f844040d60615bacc6bad8643 (patch)
tree7fd8f9669bf3e6e413ad9d60b567bc8f4dc2ab06 /src/test/codegen/pic-relocation-model.rs
parent9bf3d5a82b689484b12bc5cc053d10f632ea6095 (diff)
downloadrust-59cc718e76faee1f844040d60615bacc6bad8643.tar.gz
rust-59cc718e76faee1f844040d60615bacc6bad8643.zip
Update codegen tests to accommodate the potential presence/absence of the
extension operation depending on target architecture.
Diffstat (limited to 'src/test/codegen/pic-relocation-model.rs')
-rw-r--r--src/test/codegen/pic-relocation-model.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/codegen/pic-relocation-model.rs b/src/test/codegen/pic-relocation-model.rs
index 6e1d5a6c3f2..9b378ecb4e5 100644
--- a/src/test/codegen/pic-relocation-model.rs
+++ b/src/test/codegen/pic-relocation-model.rs
@@ -10,7 +10,10 @@ pub fn call_foreign_fn() -> u8 {
     }
 }
 
-// CHECK: declare zeroext i8 @foreign_fn()
+// (Allow but do not require `zeroext` here, because it is not worth effort to
+// spell out which targets have it and which ones do not; see rust#97800.)
+
+// CHECK: declare{{( zeroext)?}} i8 @foreign_fn()
 extern "C" {fn foreign_fn() -> u8;}
 
 // CHECK: !{i32 7, !"PIC Level", i32 2}