mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-23 12:13:08 -05:00
gccrs: testsuite: Add empty string macro test
Add two new tests with empty string for include_str and include_bytes macros. gcc/testsuite/ChangeLog: * rust/compile/issue-1830_bytes.rs: New test. * rust/compile/issue-1830_str.rs: New test. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
This commit is contained in:
committed by
Arthur Cohen
parent
b56d093e95
commit
7b00a80c9d
8
gcc/testsuite/rust/compile/issue-1830_bytes.rs
Normal file
8
gcc/testsuite/rust/compile/issue-1830_bytes.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
#[rustc_builtin_macro]
|
||||
macro_rules! include_bytes {
|
||||
() => {{}};
|
||||
}
|
||||
|
||||
fn main() {
|
||||
include_bytes!(""); // { dg-excess-errors "Is a directory" }
|
||||
}
|
||||
8
gcc/testsuite/rust/compile/issue-1830_str.rs
Normal file
8
gcc/testsuite/rust/compile/issue-1830_str.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
#[rustc_builtin_macro]
|
||||
macro_rules! include_str {
|
||||
() => {{}};
|
||||
}
|
||||
|
||||
fn main() {
|
||||
include_str!(""); // { dg-excess-errors "Is a directory" }
|
||||
}
|
||||
Reference in New Issue
Block a user