Files
Nim/tests/ccgbugs2/t25459.nim
Tomohiro 88e7adfcb7 fixes #25459; hashType returns different hash from instantiated generics with distinct types (#25471)
`hashType` proc returned the same hash value from different instanced
generics types like `D[int64]` and `D[F]`.
That caused the struct type with wrong field types.

object/tuple type size check code is generated when it is compiled with
`-d:checkAbi` option.
2026-02-01 07:01:55 +01:00

11 lines
127 B
Nim

discard """
targets: "c cpp"
matrix: "-d:checkAbi"
"""
import ./m25459/h
for _ in 0 ..< 500:
let u = new W
u[] = a()