about summary refs log tree commit diff
path: root/tests/codegen/c-variadic-copy.rs
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2023-07-29 17:30:35 -0700
committerJubilee Young <workingjubilee@gmail.com>2023-07-29 18:34:41 -0700
commitf03b31591c65b8fb43537cca83fbd306f24f413d (patch)
tree09918ed28c792e01e0f79ee782fd78550c87f7ad /tests/codegen/c-variadic-copy.rs
parentbadba92036e9728a499e118e7a6646fffd33d098 (diff)
downloadrust-f03b31591c65b8fb43537cca83fbd306f24f413d.tar.gz
rust-f03b31591c65b8fb43537cca83fbd306f24f413d.zip
tests/codegen/c-variadic* -> cffi/c-variadic*
Diffstat (limited to 'tests/codegen/c-variadic-copy.rs')
-rw-r--r--tests/codegen/c-variadic-copy.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/codegen/c-variadic-copy.rs b/tests/codegen/c-variadic-copy.rs
deleted file mode 100644
index 4c61c4fcf68..00000000000
--- a/tests/codegen/c-variadic-copy.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-// Tests that `VaListImpl::clone` gets inlined into a call to `llvm.va_copy`
-
-#![crate_type = "lib"]
-#![feature(c_variadic)]
-#![no_std]
-use core::ffi::VaList;
-
-extern "C" {
-    fn foreign_c_variadic_1(_: VaList, ...);
-}
-
-pub unsafe extern "C" fn clone_variadic(ap: VaList) {
-    let mut ap2 = ap.clone();
-    // CHECK: call void @llvm.va_copy
-    foreign_c_variadic_1(ap2.as_va_list(), 42i32);
-}