summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macro-quote-test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/macro-quote-test.rs')
-rw-r--r--src/test/ui/macro-quote-test.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/macro-quote-test.rs b/src/test/ui/macro-quote-test.rs
new file mode 100644
index 000000000..2ba61acad
--- /dev/null
+++ b/src/test/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!();
+}