printattrs: Add test.
authorAlberto Gonzalez <boqwxp@airmail.cc>
Wed, 27 May 2020 07:58:10 +0000 (07:58 +0000)
committerAlberto Gonzalez <boqwxp@airmail.cc>
Wed, 27 May 2020 08:00:00 +0000 (08:00 +0000)
tests/various/printattr.ys [new file with mode: 0644]

diff --git a/tests/various/printattr.ys b/tests/various/printattr.ys
new file mode 100644 (file)
index 0000000..afc6d8e
--- /dev/null
@@ -0,0 +1,14 @@
+logger -expect log ".*cells_not_processed=[01]* .*" 1
+logger -expect log ".*src=.<<EOT:1\.1-9\.10. .*" 1
+read_verilog <<EOT
+module mux2(a, b, s, y);
+       input a, b, s;
+       output y;
+
+       wire s_n = ~s;
+       wire t0 = s & a;
+       wire t1 = s_n & b;
+       assign y = t0 | t1;
+endmodule
+EOT
+printattrs