From 4121b503e95a33bc3c235a707c3575fd1574ca97 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 22 Oct 2015 16:20:45 -0700 Subject: [PATCH] Add test for a macro not containing an exprssion --- tests/source/macro_not_expr.rs | 7 +++++++ tests/target/macro_not_expr.rs | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/source/macro_not_expr.rs create mode 100644 tests/target/macro_not_expr.rs diff --git a/tests/source/macro_not_expr.rs b/tests/source/macro_not_expr.rs new file mode 100644 index 00000000000..d8de4dce38f --- /dev/null +++ b/tests/source/macro_not_expr.rs @@ -0,0 +1,7 @@ +macro_rules! test { + ($($t:tt)*) => {} +} + +fn main() { + test!( a : B => c d ); +} diff --git a/tests/target/macro_not_expr.rs b/tests/target/macro_not_expr.rs new file mode 100644 index 00000000000..d8de4dce38f --- /dev/null +++ b/tests/target/macro_not_expr.rs @@ -0,0 +1,7 @@ +macro_rules! test { + ($($t:tt)*) => {} +} + +fn main() { + test!( a : B => c d ); +}