aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro22.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/rust/compile/macro22.rs')
-rw-r--r--gcc/testsuite/rust/compile/macro22.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/macro22.rs b/gcc/testsuite/rust/compile/macro22.rs
new file mode 100644
index 0000000..bdc4bad
--- /dev/null
+++ b/gcc/testsuite/rust/compile/macro22.rs
@@ -0,0 +1,10 @@
+macro_rules! print {
+ () => {
+ fn puts(s: *const i8);
+ fn printf(fmt: *const i8, ...);
+ };
+}
+
+extern "C" {
+ print! {}
+}