ppTests mv macro_comment

This commit is contained in:
damc 2022-07-21 13:14:24 +02:00
parent 6f752c4cda
commit 3e8db79d51
5 changed files with 7 additions and 9 deletions

View File

@ -1111,9 +1111,9 @@ mod tests {
}
#[test]
fn macro_with_comment() {
fn macro_comment() {
let (ret, _) = preprocess(
testfile_path("test13.sv"),
testfile_path("macro_comment.sv"),
&HashMap::new(),
&[] as &[String],
false,
@ -1122,7 +1122,7 @@ mod tests {
.unwrap();
assert_eq!(
ret.text(),
testfile_contents("expected/macro_with_comment")
testfile_contents("expected/macro_comment.sv")
);
}

View File

@ -0,0 +1,2 @@
`define A 42 // Comment
interface i #(p = 42) (); endinterface

View File

@ -1,3 +0,0 @@
`define NAME 42 // Comment
interface foo #(WIDTH = 42 ) ();
endinterface

View File

@ -0,0 +1,2 @@
`define A 42 // Comment
interface i #(p = `A) (); endinterface

View File

@ -1,3 +0,0 @@
`define NAME 42 // Comment
interface foo #(WIDTH = `NAME) ();
endinterface