verilator/test_regress/t/t_flag_parameter.vc
Geza Lore a4f5d95648 Fix -G to treat simple integer literals as signed (#3060)
The -G option now correctly parses simple integer literals as signed
numbers, which is in line with the standard and is significant when
overriding parameters without a type specifier.

Fixes #3060
2021-07-08 13:42:25 +01:00

31 lines
646 B
Plaintext

-Gstring1="\"New String\""
-pvalue+string2="\"New String\""
-Gstring11='"New String"'
-pvalue+string12='"New String"'
-Gstring21=\"New\ String\"
-pvalue+string22=\"New\ String\"
-Greal11=0.2
-pvalue+real12=0.2
-Greal21=4E2
-pvalue+real22=4e2
-Greal31=0.2e2
-pvalue+real32=0.2e2
-Greal41=0x123.4p1
-pvalue+real42=0X123.4P1
-Greal51=0x123p-1
-pvalue+real52=0X123P-1
-Gint11=0x10
-pvalue+int12=0x10
-Gint21=020
-pvalue+int22=020
-Gint31=123
-pvalue+int32=123
-Gint41=32'hdead_beef
-pvalue+int42=32'hdead_beef
-Gint51=32\'hdead_beef
-pvalue+int52=32\'hdead_beef
-Gint61="32'hdead_beef"
-pvalue+int62="32'hdead_beef"
-Gint71=-1000
-pvalue+int72=-1000