diff options
author | Andreas Rumpf <andreas@andreas-laptop> | 2010-03-14 01:25:25 +0100 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-laptop> | 2010-03-14 01:25:25 +0100 |
commit | 7bf98411b6d4dfd203371b5d2ec0a5ef3a2305df (patch) | |
tree | 23f76f650800ca9508e17869cc83fc8061d1f310 /tests/accept/run/tcgbug.nim | |
parent | 3dafd6856bfd644e9cf518b36e5bfedc3220a702 (diff) | |
download | Nim-7bf98411b6d4dfd203371b5d2ec0a5ef3a2305df.tar.gz |
version 0.8.8
Diffstat (limited to 'tests/accept/run/tcgbug.nim')
-rw-r--r-- | tests/accept/run/tcgbug.nim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/accept/run/tcgbug.nim b/tests/accept/run/tcgbug.nim new file mode 100644 index 000000000..320821fb6 --- /dev/null +++ b/tests/accept/run/tcgbug.nim @@ -0,0 +1,17 @@ + +type + TObj = object + x, y: int + PObj = ref TObj + +proc p(a: PObj) = + a.x = 0 + +proc q(a: var PObj) = + a.p() + +var + a: PObj +new(a) +q(a) + |