summaryrefslogtreecommitdiffstats
path: root/src/test/incremental/auxiliary/issue-54059.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/incremental/auxiliary/issue-54059.rs')
-rw-r--r--src/test/incremental/auxiliary/issue-54059.rs50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/test/incremental/auxiliary/issue-54059.rs b/src/test/incremental/auxiliary/issue-54059.rs
deleted file mode 100644
index fa2814a77..000000000
--- a/src/test/incremental/auxiliary/issue-54059.rs
+++ /dev/null
@@ -1,50 +0,0 @@
-// force-host
-// no-prefer-dynamic
-
-// check that having extern "C" functions in a proc macro doesn't crash.
-
-#![crate_type="proc-macro"]
-#![allow(non_snake_case)]
-
-extern crate proc_macro;
-
-macro_rules! proc_macro_tokenstream {
- () => {
- ::proc_macro::TokenStream
- };
-}
-
-macro_rules! proc_macro_expr_impl {
- ($(
- $( #[$attr:meta] )*
- pub fn $func:ident($input:ident: &str) -> String $body:block
- )+) => {
- $(
- // Parses an input that looks like:
- //
- // ```
- // #[allow(unused)]
- // enum ProcMacroHack {
- // Input = (stringify!(ARGS), 0).1,
- // }
- // ```
- $( #[$attr] )*
- #[proc_macro_derive($func)]
- pub fn $func(input: proc_macro_tokenstream!()) -> proc_macro_tokenstream!() {
- unsafe { rust_dbg_extern_identity_u64(0); }
- panic!()
- }
- )+
- };
-}
-
-proc_macro_expr_impl! {
- pub fn base2_impl(input: &str) -> String {
- panic!()
- }
-}
-
-#[link(name="rust_test_helpers")]
-extern "C" {
- pub fn rust_dbg_extern_identity_u64(v: u64) -> u64;
-}