diff options
Diffstat (limited to 'tests/pretty/attr-literals.rs')
-rw-r--r-- | tests/pretty/attr-literals.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/pretty/attr-literals.rs b/tests/pretty/attr-literals.rs new file mode 100644 index 000000000..d13201442 --- /dev/null +++ b/tests/pretty/attr-literals.rs @@ -0,0 +1,14 @@ +// Tests literals in attributes. + +// pp-exact + +#![feature(rustc_attrs)] + +fn main() { + #![rustc_dummy("hi", 1, 2, 1.012, pi = 3.14, bye, name("John"))] + #[rustc_dummy = 8] + fn f() {} + + #[rustc_dummy(1, 2, 3)] + fn g() {} +} |