verilator/test_regress/t/t_class_new_ref_bad.out

15 lines
846 B
Plaintext
Raw Normal View History

2026-03-08 23:26:40 +01:00
%Error: t/t_class_new_ref_bad.v:16:22: new() assignment not legal to non-class data type 'int'
2024-08-11 16:09:05 +02:00
: ... note: In instance 't'
2026-03-08 23:26:40 +01:00
16 | txn_type_t txn = new;
| ^~~
... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance.
2026-03-08 23:26:40 +01:00
%Error: t/t_class_new_ref_bad.v:17:23: new() cannot copy from non-class data type 'int'
2024-08-11 16:09:05 +02:00
: ... note: In instance 't'
2026-03-08 23:26:40 +01:00
17 | txn_type_t copy = new txn;
| ^~~
%Error: t/t_class_new_ref_bad.v:26:29: Assign RHS expects a CLASSREFDTYPE 'Base', got BASICDTYPE 'int'
2024-08-11 16:09:05 +02:00
: ... note: In instance 't'
2026-03-08 23:26:40 +01:00
26 | automatic Base b = Cls::generate_txn();
| ^~~~~~~~~~~~
2024-08-11 16:09:05 +02:00
%Error: Exiting due to