ppTests mv IEEE18002017_macro_noexpand_string

This commit is contained in:
damc 2022-07-21 13:08:57 +02:00
parent 637e970b13
commit d40374b509
2 changed files with 4 additions and 13 deletions

View File

@ -994,9 +994,10 @@ mod tests {
} }
#[test] #[test]
fn macro_parameters_dependent() { #[allow(non_snake_case)]
fn IEEE18002017_macro_noexpand_string() {
let (ret, _) = preprocess( let (ret, _) = preprocess(
testfile_path("test5.sv"), testfile_path("IEEE18002017_macro_noexpand_string.sv"),
&HashMap::new(), &HashMap::new(),
&[] as &[String], &[] as &[String],
false, false,
@ -1005,7 +1006,7 @@ mod tests {
.unwrap(); .unwrap();
assert_eq!( assert_eq!(
ret.text(), ret.text(),
testfile_contents("expected/macro_parameters_dependent") testfile_contents("expected/IEEE18002017_macro_noexpand_string.sv")
); );
} }

View File

@ -1,10 +0,0 @@
module a;
`define HI Hello
`define LO "`HI, world"
`define H(x) "Hello, x"
initial begin
$display("`HI, world");
$display(`LO);
$display(`H(world));
end
endmodule