got rid of 'accept' dir in the tests
This commit is contained in:
parent
d0772feb08
commit
a274f3bf5b
264 changed files with 5 additions and 7 deletions
23
tests/run/tcgbug.nim
Executable file
23
tests/run/tcgbug.nim
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
discard """
|
||||
file: "tcgbug.nim"
|
||||
output: "success"
|
||||
"""
|
||||
|
||||
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)
|
||||
|
||||
echo "success"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue