diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-12-22 09:13:22 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-12-22 09:13:22 +0100 |
commit | 7bd473c59b9c54aca18b85efd78d484e0306c7be (patch) | |
tree | dcfc2e95a9127e487736cb35d38824388023519d /tests/ccgbugs | |
parent | 4e481cc316229436b87aaf035d70f686d0aaee5f (diff) | |
download | Nim-7bd473c59b9c54aca18b85efd78d484e0306c7be.tar.gz |
fixes #5137
Diffstat (limited to 'tests/ccgbugs')
-rw-r--r-- | tests/ccgbugs/tcodegenbug1.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ccgbugs/tcodegenbug1.nim b/tests/ccgbugs/tcodegenbug1.nim index a5cfc77cc..671974087 100644 --- a/tests/ccgbugs/tcodegenbug1.nim +++ b/tests/ccgbugs/tcodegenbug1.nim @@ -65,3 +65,12 @@ type # have a proc taking TFlags as param and returning object having TFlags field proc foo(flags: TFlags): TObj = nil + + +# bug #5137 +type + MyInt {.importc: "int".} = object + MyIntDistinct = distinct MyInt + +proc bug5137(d: MyIntDistinct) = + discard d.MyInt |