diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-07-14 08:59:25 +0000 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-08-01 13:57:59 -0700 |
| commit | aa375e308fcc8b4e188f1f7eb47d9147c560675b (patch) | |
| tree | c8d3e340de7e376ffd8a765d78b8566756136b58 /src/test/compile-fail/macro-expanded-include/foo | |
| parent | b2400045b72acd6e26ff2b2fc5493bcc5704aeca (diff) | |
| download | rust-aa375e308fcc8b4e188f1f7eb47d9147c560675b.tar.gz rust-aa375e308fcc8b4e188f1f7eb47d9147c560675b.zip | |
Add regression test
Diffstat (limited to 'src/test/compile-fail/macro-expanded-include/foo')
| -rw-r--r-- | src/test/compile-fail/macro-expanded-include/foo/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/compile-fail/macro-expanded-include/foo/mod.rs b/src/test/compile-fail/macro-expanded-include/foo/mod.rs index 57b7b72a1d4..888bdf5179a 100644 --- a/src/test/compile-fail/macro-expanded-include/foo/mod.rs +++ b/src/test/compile-fail/macro-expanded-include/foo/mod.rs @@ -13,3 +13,7 @@ macro_rules! m { () => { include!("file.txt"); } } + +macro_rules! n { + () => { unsafe { asm!(include_str!("file.txt")); } } +} |
