
- Similarly to how `define is left in-place, `undef and `undefine are also left in-place. - Corresponding fixes to macro_LINE and macro_FILE. - These directives were not in any testcases before this branch.
22 lines
411 B
Systemverilog
22 lines
411 B
Systemverilog
// __LINE__ = `__LINE__
|
|
|
|
// This block SHOULD be emitted from the preprocessor.
|
|
|
|
|
|
// Emitted instead.
|
|
|
|
|
|
// The following define should have no effect.
|
|
`define __LINE__ -2
|
|
|
|
// The following undef should have no effect.
|
|
`undef __LINE__
|
|
|
|
module M;
|
|
initial
|
|
if (26 == 28) // Should be "26 == 28".
|
|
$display("PASS");
|
|
else if (28 == 28) // Should be "28 == 28".
|
|
$display("FAIL");
|
|
endmodule
|