summary refs log tree commit diff stats
path: root/tests/ccgbugs/targ_lefttoright.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/targ_lefttoright.nim')
-rw-r--r--tests/ccgbugs/targ_lefttoright.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ccgbugs/targ_lefttoright.nim b/tests/ccgbugs/targ_lefttoright.nim
index b107b2327..a0adce157 100644
--- a/tests/ccgbugs/targ_lefttoright.nim
+++ b/tests/ccgbugs/targ_lefttoright.nim
@@ -16,6 +16,7 @@ discard """
 2,2
 1,2
 '''
+  cmd: "nim c --gc:orc $file"
 """
 
 template test =
@@ -28,7 +29,7 @@ template test =
   var b = 1
   say (b += 1; b), (b += 1; b) #2,3
 
-  type C = object {.byRef.}
+  type C {.byRef.} = object
     i: int
 
   proc say(a, b: C) =