From 91eba77b96bf6040063abe6b7551021f15685f83 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 17 Jul 2017 09:28:03 +0200 Subject: fixes #4763 --- tests/objects/tobject3.nim | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'tests/objects') diff --git a/tests/objects/tobject3.nim b/tests/objects/tobject3.nim index 15dd8ea24..f3713ce22 100644 --- a/tests/objects/tobject3.nim +++ b/tests/objects/tobject3.nim @@ -1,3 +1,13 @@ +discard """ + ouptut: '''TBar2 +TFoo +16 +12 +16 +12''' +""" + +## XXX this output needs to be adapated for VCC which produces different results. # It turned out that it's hard to generate correct for these two test cases at # the same time. @@ -57,3 +67,25 @@ var aa = makeWindow() thisCausesError(dd, aa) +# bug #4763 +type + testObject_1 = object + size: int32 + value: int64 + + testObject_2 {.packed.} = object + size: int32 + value: int64 + + testObject_3[T] = object + size: int32 + value: T + + testObject_4 {.packed.} [T] = object + size: int32 + value: T + +echo sizeof(testObject_1) +echo sizeof(testObject_2) +echo sizeof(testObject_3[int64]) +echo sizeof(testObject_4[int64]) -- cgit 1.4.1-2-gfad0 > summary refs log blame commit diff stats
path: root/compiler/sighashes.nim
blob: 04b3d7a340e05ccefa8f4a0c7b24e98eec898ce7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11