non_opt_delay behavioral_stmt |
attr simple_behavioral_stmt ';' |
attr ';' {
- log_file_warning(current_filename, get_line_num(), "Attribute(s) attached to null statement. Ignoring.\n");
free_attr($1);
} |
attr hierarchical_id {
gen_stmt_or_module_body_stmt:
gen_stmt | module_body_stmt |
attr ';' {
- log_file_warning(current_filename, get_line_num(), "Attribute(s) attached to null statement. Ignoring.\n");
free_attr($1);
};
-logger -expect warning "Attribute\(s\) attached to null statement\. Ignoring\." 1
logger -expect-no-warnings
read_verilog <<EOT
module test ();
if (y) (* foo *) ;
endmodule
EOT
+select -assert-none a:* a:src %d
design -reset
-logger -expect warning "Attribute\(s\) attached to null statement\. Ignoring\." 3 # cumulative
logger -expect-no-warnings
read_verilog <<EOT
module test ();
if (y) (* foo *) ; else (* bar *) ;
endmodule
EOT
+select -assert-none a:* a:src %d
design -reset
-logger -expect warning "Attribute\(s\) attached to null statement\. Ignoring\." 4 # cumulative
logger -expect-no-warnings
read_verilog <<EOT
module test ();
generate if (y) (* foo *) ; endgenerate
endmodule
EOT
+select -assert-none a:*
design -reset
-logger -expect warning "Attribute\(s\) attached to null statement\. Ignoring\." 6 # cumulative
logger -expect-no-warnings
read_verilog <<EOT
module test ();
generate if (y) (* foo *) ; else (* bar *); endgenerate
endmodule
EOT
+select -assert-none a:*