summaryrefslogtreecommitdiffstats
path: root/tests/ui/macro-quote-test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macro-quote-test.rs')
-rw-r--r--tests/ui/macro-quote-test.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/macro-quote-test.rs b/tests/ui/macro-quote-test.rs
new file mode 100644
index 000000000..2ba61acad
--- /dev/null
+++ b/tests/ui/macro-quote-test.rs
@@ -0,0 +1,10 @@
+// Test that a macro can emit delimiters with nothing inside - `()`, `{}`
+
+// run-pass
+// aux-build:hello_macro.rs
+
+extern crate hello_macro;
+
+fn main() {
+ hello_macro::hello!();
+}