about summary refs log tree commit diff
path: root/tests/codegen/c-variadic.rs
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-30 21:11:30 +0100
committernils <48135649+Nilstrieb@users.noreply.github.com>2023-01-17 16:23:22 +0100
commitf1255380ac1cb7be1b6b0ac0eda5b1274b29eff6 (patch)
tree4b0add72699a923fde3a2c7801330403a369c6ca /tests/codegen/c-variadic.rs
parentaf23ad93cd3309e90ccb2c49b7a7b2ac913e0d06 (diff)
downloadrust-f1255380ac1cb7be1b6b0ac0eda5b1274b29eff6.tar.gz
rust-f1255380ac1cb7be1b6b0ac0eda5b1274b29eff6.zip
Add more codegen tests
Diffstat (limited to 'tests/codegen/c-variadic.rs')
-rw-r--r--tests/codegen/c-variadic.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/codegen/c-variadic.rs b/tests/codegen/c-variadic.rs
index 1f16550d3b6..cab32652210 100644
--- a/tests/codegen/c-variadic.rs
+++ b/tests/codegen/c-variadic.rs
@@ -1,5 +1,5 @@
 // ignore-wasm32-bare compiled with panic=abort by default
-// compile-flags: -C no-prepopulate-passes
+// compile-flags: -C no-prepopulate-passes -Copt-level=0
 //
 
 #![crate_type = "lib"]
@@ -15,7 +15,7 @@ extern "C" {
 
 pub unsafe extern "C" fn use_foreign_c_variadic_0() {
     // Ensure that we correctly call foreign C-variadic functions.
-    // CHECK: call void (i32, ...) @foreign_c_variadic_0([[PARAM:i32 noundef( signext)?]] 0)
+    // CHECK: call void (i32, ...) @foreign_c_variadic_0([[PARAM:i32( signext)?]] 0)
     foreign_c_variadic_0(0);
     // CHECK: call void (i32, ...) @foreign_c_variadic_0([[PARAM]] 0, [[PARAM]] 42)
     foreign_c_variadic_0(0, 42i32);
@@ -61,7 +61,7 @@ pub unsafe extern "C" fn c_variadic(n: i32, mut ap: ...) -> i32 {
 // Ensure that we generate the correct `call` signature when calling a Rust
 // defined C-variadic.
 pub unsafe fn test_c_variadic_call() {
-    // CHECK: call [[RET:noundef( signext)? i32]] (i32, ...) @c_variadic([[PARAM]] 0)
+    // CHECK: call [[RET:(signext )?i32]] (i32, ...) @c_variadic([[PARAM]] 0)
     c_variadic(0);
     // CHECK: call [[RET]] (i32, ...) @c_variadic([[PARAM]] 0, [[PARAM]] 42)
     c_variadic(0, 42i32);