rust/src/test/ui/proc-macro/crt-static.rs

16 lines
372 B
Rust
Raw Normal View History

// Test proc-macro crate can be built without addtional RUSTFLAGS
// on musl target
2020-03-08 08:49:52 -05:00
// override -Ctarget-feature=-crt-static from compiletest
// compile-flags: -Ctarget-feature=
2020-03-03 05:17:24 -06:00
// build-pass
#![crate_type = "proc-macro"]
extern crate proc_macro;
use proc_macro::TokenStream;
#[proc_macro_derive(Foo)]
pub fn derive_foo(input: TokenStream) -> TokenStream {
input
}