blob: 4109b450a8ab35a1f5d0b972929d8a368eb2d3ad [file] [log] [blame]
//@ run-pass
//@ proc-macro: attr-args.rs
//@ ignore-backends: gcc
#![allow(warnings)]
extern crate attr_args;
use attr_args::{attr_with_args, identity};
#[attr_with_args(text = "Hello, world!")]
fn foo() {}
#[identity(fn main() { assert_eq!(foo(), "Hello, world!"); })]
struct Dummy;