summary refs log tree commit diff stats
path: root/tests/run/tpegs.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/tpegs.nim')
-rwxr-xr-xtests/run/tpegs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run/tpegs.nim b/tests/run/tpegs.nim
index a073f8856..315833326 100755
--- a/tests/run/tpegs.nim
+++ b/tests/run/tpegs.nim
@@ -866,7 +866,7 @@ template `=~`*(s: string, pattern: TPeg): expr =
   ##     echo("syntax error")
   ##  
   when not definedInScope(matches):
-    var matches: array[0..maxSubpatterns-1, string]
+    var matches {.inject.}: array[0..maxSubpatterns-1, string]
   match(s, pattern, matches)
 
 # ------------------------- more string handling ------------------------------