From 7bf98411b6d4dfd203371b5d2ec0a5ef3a2305df Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sun, 14 Mar 2010 01:25:25 +0100 Subject: version 0.8.8 --- tests/accept/run/tcgbug.nim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/accept/run/tcgbug.nim (limited to 'tests/accept/run/tcgbug.nim') 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) + -- cgit 1.4.1-2-gfad0